aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_mem
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_mem')
-rwxr-xr-xplugins/check_mem2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_mem b/plugins/check_mem
index 09b4ba8..1762662 100755
--- a/plugins/check_mem
+++ b/plugins/check_mem
@@ -34,7 +34,7 @@ done <<< $(free | tail -n -2)
PERCENT_USED=$(echo "scale=4; $USED / $TOTAL * 100 " | bc -l)
PERCENT_USED=${PERCENT_USED%00}
-PERCENT_USED_INT=${PERCENT_USED%.*}
+PERCENT_USED_INT=0${PERCENT_USED%.*}
if [ $PERCENT_USED_INT -ge $CRIT ]; then
RET=2