From 8c94e0c82ce4e2c0c2b250e73e4a845074402091 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 26 Feb 2022 13:15:58 +0100 Subject: fix check_mem for usage <1% --- plugins/check_mem | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3