1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

Feature #1739: Fix bug in VM monitoring parser

(cherry picked from commit 0277e7430a)
This commit is contained in:
Carlos Martín 2013-02-19 17:33:53 +01:00 committed by Jaime Melis
parent 91c0daa7b5
commit 9cfa59d06e

View File

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