]> granicus.if.org Git - icinga2/commitdiff
Fix code style 6109/head
authorNoah Hilverling <noah@hilverling.com>
Wed, 21 Feb 2018 14:13:50 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2018 14:13:50 +0000 (15:13 +0100)
plugins/check_memory.cpp

index 45a56616d90bdd8bf61627944bf26aaafbb62186..ff1904c4a30bb6e81c7acb0ae1a7d59766eeeba4 100644 (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 - ";
                }