mirror of https://github.com/Icinga/icinga2.git
Fail if perfdata is corrupted
Could not reproduce this myself, so no way to test fixes #11604
This commit is contained in:
parent
c81b4a82dd
commit
0d71be774e
|
@ -236,6 +236,10 @@ INT check_load(printInfoStruct& printInfo)
|
|||
if (debug)
|
||||
std::wcout << L"Recieved Value of " << DisplayValue.doubleValue << L" (idle)" << '\n';
|
||||
printInfo.load = 100.0 - DisplayValue.doubleValue;
|
||||
} else {
|
||||
if (debug)
|
||||
std::wcout << L"Received data was not valid\n";
|
||||
goto die;
|
||||
}
|
||||
|
||||
if (debug)
|
||||
|
|
Loading…
Reference in New Issue