mirror of https://github.com/Icinga/icinga2.git
Fix check_memory thresholds in 'used' mode
The thresholds in the used mode now breaks if the value is bigger than the threshold.
This commit is contained in:
parent
f5e14e28eb
commit
002f59e53a
|
@ -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…
Reference in New Issue