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:
parent
91c0daa7b5
commit
9cfa59d06e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user