From 8db0fca11483d477c18d1798d3205e7981ba135d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 30 Mar 2018 09:59:32 +0200 Subject: [PATCH] Fix array index --- System/SystemUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/SystemUtils.php b/System/SystemUtils.php index 47657af55..74221a201 100644 --- a/System/SystemUtils.php +++ b/System/SystemUtils.php @@ -86,7 +86,7 @@ class SystemUtils $free = (string) trim($free); $freeArr = explode("\n", $free); $mem = explode(" ", $freeArr[1]); - $mem = array_filter($mem); + $mem = array_values(array_filter($mem)); $memUsage = $mem[2] / $mem[1] * 100; }