Fix code style

This commit is contained in:
Noah Hilverling 2018-02-21 15:13:50 +01:00 committed by GitHub
parent de9adb2687
commit e9643467a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -182,17 +182,14 @@ INT printOutput(printInfoStruct& printInfo)
output << printInfo.percentFree << L"% free | memory = " << printInfo.aRam << BunitStr(printInfo.unit) << L";"
<< printInfo.warn.pString(printInfo.tRam) << L";" << printInfo.crit.pString(printInfo.tRam)
<< L";0;" << printInfo.tRam;
}
else {
} else {
if (printInfo.warn.rend(printInfo.tRam - printInfo.aRam, printInfo.tRam)) {
state = WARNING;
output << L"MEMORY WARNING - ";
}
else if (printInfo.crit.rend(printInfo.tRam - printInfo.aRam, printInfo.tRam)) {
} else if (printInfo.crit.rend(printInfo.tRam - printInfo.aRam, printInfo.tRam)) {
state = CRITICAL;
output << L"MEMORY CRITICAL - ";
}
else {
} else {
state = OK;
output << L"MEMORY OK - ";
}