From: Jonny Tischbein Date: Mon, 19 Nov 2018 22:21:40 +0000 (+0100) Subject: Change Worker to use only MemFree in isMinMemoryReached X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9aea59d4e39c15add5845114d46ede43fa723f46;p=friendica.git Change Worker to use only MemFree in isMinMemoryReached --- diff --git a/src/App.php b/src/App.php index 4451013093..67625228b4 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);