From 725787bcf7421143d6567e5b4f39ab5fd3fd8695 Mon Sep 17 00:00:00 2001 From: shevabam Date: Thu, 2 Nov 2017 20:54:43 +0100 Subject: fix PHP 7.1 notices "non well formed numeric value" #52 --- libs/memory.php | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/memory.php') 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; -- cgit v1.3