mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
(cherry picked from commit 9811149add03fe2fb44f5bb6865907f4ee37eb25)
This commit is contained in:
parent
7a1a85edb6
commit
97664da2d9
@ -320,6 +320,13 @@ void DispatchManager::free_vm_resources(unique_ptr<VirtualMachine> vm,
|
||||
|
||||
vm->set_exit_time(time(0));
|
||||
|
||||
if (vm->hasHistory() && vm->get_etime() == 0)
|
||||
{
|
||||
vm->set_etime(time(0));
|
||||
|
||||
vmpool->update_history(vm.get());
|
||||
}
|
||||
|
||||
VectorAttribute * graphics = vm->get_template_attribute("GRAPHICS");
|
||||
|
||||
if ( graphics != nullptr && graphics->vector_value("PORT", port) == 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user