From: Noah Hilverling Date: Wed, 21 Feb 2018 14:13:50 +0000 (+0100) Subject: Fix code style X-Git-Tag: v2.9.0~156^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9643467a0e972a916f14aef02ed92b6f62023c4;p=icinga2 Fix code style --- diff --git a/plugins/check_memory.cpp b/plugins/check_memory.cpp index 45a56616d..ff1904c4a 100644 --- a/plugins/check_memory.cpp +++ b/plugins/check_memory.cpp @@ -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 - "; }