From 8ac4bb438da18ef407e283af10399cac75fc7e23 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 18 Jun 2010 00:58:49 +0200 Subject: [PATCH] feature #261: Monitor VMs for the first time --- src/vm/VirtualMachinePool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/VirtualMachinePool.cc b/src/vm/VirtualMachinePool.cc index 8d5f4b96f9..47a48f55ad 100644 --- a/src/vm/VirtualMachinePool.cc +++ b/src/vm/VirtualMachinePool.cc @@ -260,7 +260,7 @@ int VirtualMachinePool::get_running( ostringstream os; string where; - os << "last_poll > 0 and last_poll <= " << last_poll << " and" + os << "last_poll <= " << last_poll << " and" << " state = " << VirtualMachine::ACTIVE << " and ( lcm_state = " << VirtualMachine::RUNNING << " or lcm_state = " << VirtualMachine::UNKNOWN << " )"