Fail if perfdata is corrupted

Could not reproduce this myself, so no way to test

fixes #11604
This commit is contained in:
Jean Flach 2016-09-12 17:44:03 +02:00
parent c81b4a82dd
commit 0d71be774e
1 changed files with 4 additions and 0 deletions

View File

@ -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)