mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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)
|
if (debug)
|
||||||
std::wcout << L"Recieved Value of " << DisplayValue.doubleValue << L" (idle)" << '\n';
|
std::wcout << L"Recieved Value of " << DisplayValue.doubleValue << L" (idle)" << '\n';
|
||||||
printInfo.load = 100.0 - DisplayValue.doubleValue;
|
printInfo.load = 100.0 - DisplayValue.doubleValue;
|
||||||
|
} else {
|
||||||
|
if (debug)
|
||||||
|
std::wcout << L"Received data was not valid\n";
|
||||||
|
goto die;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user