Fix memory used detection
Benjamin Renard

Benjamin Renard commited on 2021-09-16 15:35:11
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -26,7 +26,7 @@ RET=0
26 26
 MSG=""
27 27
 
28 28
 MT=`free -b|grep Mem|awk '{print $2}'`
29
-MU=`free -b|grep Mem|awk '{print $3-$7}'`
29
+MU=`free -b|grep Mem|awk '{print $3}'`
30 30
 if [ "$MT" == "0" -o "$MT" == "" ]
31 31
 then
32 32
 	echo "CRITICAL - Can't read memory informations"
33 33