From 4325f9a9cf42edd13ad063a9969ac8576a8a3fcb Mon Sep 17 00:00:00 2001 From: Emmanuel Geoffray Date: Thu, 7 Dec 2017 20:49:12 +0100 Subject: [PATCH] Fixed memory used --- includes/system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/system.php b/includes/system.php index 213e87a8..8f8c29e3 100755 --- a/includes/system.php +++ b/includes/system.php @@ -66,7 +66,7 @@ function DisplaySystem(){ // mem used $memused_status = "primary"; - exec("free -m | awk '/Mem:/ { total=$2 } /buffers\/cache/ { used=$3 } END { print used/total*100}'", $memarray); + exec("free -m | awk '/Mem:/ { total=$2 ; used=$3 } END { print used/total*100}'", $memarray); $memused = floor($memarray[0]); if ($memused > 90) { $memused_status = "danger"; } elseif ($memused > 75) { $memused_status = "warning"; }