Feature #1739: Update vm last_poll when the operation ends, instead of when it is triggered

This commit is contained in:
Carlos Martín committed 2013-02-11 18:32:26 +01:00
1 parent e665b0b6ba
commit 1a9600a6bb
3 files changed
+2 -8

No files matched your search

-2
View File
@@ -164,8 +164,6 @@ void InformationManagerDriver::protocol(
if (rc == 0)
{
// TODO: update last_poll vm->set_last_poll
monitor_str = vatt->vector_value("POLL");
VirtualMachineManagerDriver::process_poll(vmid, monitor_str);
-6
View File
@@ -1338,8 +1338,6 @@ void VirtualMachineManager::poll_action(
"",
vm->to_xml(vm_tmpl));
vm->set_last_poll(time(0));
vmd->poll(vid, *drv_msg);
delete drv_msg;
@@ -1479,8 +1477,6 @@ void VirtualMachineManager::timer_action()
os << "Monitoring VM " << *it << ".";
NebulaLog::log("VMM", Log::INFO, os);
vm->set_last_poll(thetime);
vmd = get(vm->get_vmm_mad());
if ( vmd == 0 )
@@ -1506,8 +1502,6 @@ void VirtualMachineManager::timer_action()
delete drv_msg;
vmpool->update(vm);
vm->unlock();
}
}
+2
View File
@@ -540,6 +540,8 @@ void VirtualMachineManagerDriver::process_poll(
return;
}
vm->set_last_poll(time(0));
vm->update_info(memory,cpu,net_tx,net_rx);
vm->set_vm_info();