]> granicus.if.org Git - icinga2/commitdiff
Merge pull request #6412 from Icinga/fix/plugin-output
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 26 Jun 2018 07:54:43 +0000 (09:54 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 07:54:43 +0000 (09:54 +0200)
Fix output formatting in windows plugins

1  2 
plugins/check_memory.cpp

index 8c274c1fe0a35c417cd3a17374019b383c0c8b64,bbdbd741f0ea0cbe25ddc0b53648f6332947a6d1..e69e02700dc9b9b0030eb2ce64993320c1f4c8b6
@@@ -187,9 -187,9 +187,9 @@@ static int printOutput(printInfoStruct
        else
                std::wcout << " - " << 100 - printInfo.percentFree << L"% used";
  
 -      std::wcout << "| memory=" << currentValue << BunitStr(printInfo.unit) << L";"
 +      std::wcout << "| 'memory'=" << currentValue << BunitStr(printInfo.unit) << L";"
                << printInfo.warn.pString(printInfo.tRam) << L";" << printInfo.crit.pString(printInfo.tRam)
-               << L";0;" << printInfo.tRam;
+               << L";0;" << printInfo.tRam << '\n';
  
        return state;
  }