mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Development: Merge POLL information from different monitor probes
This commit is contained in:
parent
bd6ad8374d
commit
b818c57799
@ -347,7 +347,16 @@ int Host::update_info(Template &tmpl,
|
||||
{
|
||||
if (tmp_lost_vms.erase(vmid) == 1) //Good, known
|
||||
{
|
||||
found.insert(make_pair(vmid, vatt->vector_value("POLL")));
|
||||
map<int, string>::iterator it_vm;
|
||||
|
||||
if ( it_vm != found.end() )
|
||||
{
|
||||
it_vm->second += " " + vatt->vector_value("POLL");
|
||||
}
|
||||
else
|
||||
{
|
||||
found.insert(make_pair(vmid, vatt->vector_value("POLL")));
|
||||
}
|
||||
}
|
||||
else //Bad, known but should not be here
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user