mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 01:34:30 +02:00
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user