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:
parent
acbba62ba0
commit
0277e7430a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user