Merge pull request #6652 from Icinga/bugfix/check-memory-used-thresholds

Fix check_memory thresholds in 'used' mode
This commit is contained in:
Michael Friedrich 2018-10-08 13:18:26 +02:00 committed by GitHub
commit f0411150bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,11 @@ static int parseArguments(int ac, WCHAR ** av, po::variables_map& vm, printInfoS
}
}
printInfo.showUsed = vm.count("show-used") > 0;
if (vm.count("show-used")) {
printInfo.showUsed = true;
printInfo.warn.legal = true;
printInfo.crit.legal = true;
}
return -1;
}