1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #1739: Fix bug in VM monitoring parser

This commit is contained in:
Carlos Martín 2013-02-19 17:33:53 +01:00
parent acbba62ba0
commit 0277e7430a

View File

@ -603,7 +603,7 @@ int VirtualMachineManagerDriver::parse_vm_info(
}
else if (var == "USEDCPU")
{
tiss >> cpu;
tiss >> fixed >> cpu;
}
else if (var == "NETRX")
{
@ -626,7 +626,7 @@ int VirtualMachineManagerDriver::parse_vm_info(
custom.insert(make_pair(var, val));
}
if (!tiss.good())
if (tiss.fail())
{
parse_result = -1;
continue;