1
0
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:
Ruben S. Montero 2016-05-12 19:37:41 +02:00
parent bd6ad8374d
commit b818c57799

View File

@ -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
{