Browse Source

Merge pull request #1124 from BANKA2017/fix-function-used-memory

Fix: function usedMemory
pull/1137/head
Bill Zimmerman 10 months ago
committed by GitHub
parent
commit
43ba0db577
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lib/system.php

2
app/lib/system.php

@ -42,7 +42,7 @@ class Sysinfo
public function usedMemory()
{
$used = shell_exec("free -m | awk '/Mem:/ { total=$2 ; used=$3 } END { print used/total*100}'");
$used = shell_exec("free -m | awk 'NR==2{ total=$2 ; used=$3 } END { print used/total*100}'");
return floor($used);
}

Loading…
Cancel
Save