diff options
Diffstat (limited to 'libs/memory.php')
| -rw-r--r-- | libs/memory.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/memory.php b/libs/memory.php index a4eda7b..d7ed89f 100644 --- a/libs/memory.php +++ b/libs/memory.php @@ -17,6 +17,7 @@ if (!($total = shell_exec('grep MemTotal /proc/meminfo | awk \'{print $2}\''))) { $total = 0; } +$total = (int)$total; // Used $used = $total - $free; |
