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"; }