From 9aea59d4e39c15add5845114d46ede43fa723f46 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Mon, 19 Nov 2018 23:21:40 +0100 Subject: [PATCH] Change Worker to use only MemFree in isMinMemoryReached --- src/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 445101309..67625228b 100644 --- a/src/App.php +++ b/src/App.php @@ -1013,11 +1013,11 @@ class App $meminfo[$key] = (int) ($meminfo[$key] / 1024); } - if (!isset($meminfo['MemAvailable']) || !isset($meminfo['MemFree'])) { + if (!isset($meminfo['MemFree'])) { return false; } - $free = $meminfo['MemAvailable'] + $meminfo['MemFree']; + $free = $meminfo['MemFree']; $reached = ($free < $min_memory);