]> git.mxchange.org Git - friendica.git/commitdiff
Change Worker to use only MemFree in isMinMemoryReached
authorJonny Tischbein <jonny_tischbein@systemli.org>
Mon, 19 Nov 2018 22:21:40 +0000 (23:21 +0100)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Mon, 19 Nov 2018 22:21:40 +0000 (23:21 +0100)
src/App.php

index 445101309384a2f651b46fd69f78b507835538a4..67625228b40153d1d1e5fe80c0115756d019b1c6 100644 (file)
@@ -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);