mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #6652 from Icinga/bugfix/check-memory-used-thresholds
Fix check_memory thresholds in 'used' mode
This commit is contained in:
commit
f0411150bb
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user