aboutsummaryrefslogtreecommitdiffstats
path: root/libs/memory.php
diff options
context:
space:
mode:
authorshevabam <shevabam@gmail.com>2017-11-02 20:54:43 +0100
committershevabam <shevabam@gmail.com>2017-11-02 20:54:43 +0100
commit725787bcf7421143d6567e5b4f39ab5fd3fd8695 (patch)
tree350af5d92c101bd697b9bb0b165f172915a3742a /libs/memory.php
parentf6dc27183987b65dc06c11dbfd21507da15f1ea7 (diff)
fix PHP 7.1 notices "non well formed numeric value" #52
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;