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:
Michael Insel 2018-10-04 11:06:27 +02:00
parent f5e14e28eb
commit 002f59e53a
1 changed files with 5 additions and 1 deletions

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;
}