Decide state based on single drives

fixes #9197
This commit is contained in:
Jean Flach 2015-06-22 12:57:37 +02:00
parent ed4feac422
commit 88f004a356
1 changed files with 6 additions and 6 deletions

View File

@ -204,17 +204,17 @@ INT printOutput(printInfoStruct& printInfo, std::vector<drive>& vDrives)
wsPerf.push_back(L" " + it->name + L"=" + removeZero(it->free) + unit + L";" +
printInfo.warn.pString(it->cap) + L";" + printInfo.crit.pString(it->cap) + L";0;"
+ removeZero(it->cap));
if (printInfo.crit.rend(it->free, it->cap))
state = CRITICAL;
if (state == OK && printInfo.warn.rend(it->free, it->cap))
state = WARNING;
}
if (printInfo.warn.rend(tFree, tCap)) {
state = WARNING;
if (state == WARNING)
output = L"DISK WARNING - free space:";
}
if (printInfo.crit.rend(tFree, tCap)) {
state = CRITICAL;
if (state == CRITICAL)
output = L"DISK CRITICAL - free space:";
}
std::wcout << output;
if (vDrives.size() > 1)