mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5907 from mcktr/fix/check-swap-build-error
Windows plugin check_swap build fix
This commit is contained in:
commit
619266bf97
|
@ -191,7 +191,7 @@ INT printOutput(printInfoStruct& printInfo)
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
INT check_swap(printInfoStruct& printInfo
|
INT check_swap(printInfoStruct& printInfo)
|
||||||
{
|
{
|
||||||
MEMORYSTATUSEX MemBuf;
|
MEMORYSTATUSEX MemBuf;
|
||||||
MemBuf.dwLength = sizeof(MemBuf);
|
MemBuf.dwLength = sizeof(MemBuf);
|
||||||
|
|
|
@ -114,7 +114,7 @@ std::wstring threshold::pString(CONST DOUBLE max)
|
||||||
upperAbs = upper / 100.0 * max;
|
upperAbs = upper / 100.0 * max;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::wstring s, lowerStr = removeZero(lowerAbs)
|
std::wstring s, lowerStr = removeZero(lowerAbs),
|
||||||
upperStr = removeZero(upperAbs);
|
upperStr = removeZero(upperAbs);
|
||||||
|
|
||||||
if (lower != upper) {
|
if (lower != upper) {
|
||||||
|
|
Loading…
Reference in New Issue