aboutsummaryrefslogtreecommitdiffstats
path: root/libs/memory.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/memory.php')
-rw-r--r--libs/memory.php1
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;