mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Merge pull request #6171 from JonnyTischbein/issue_worker_free_mem
Change Worker to use only MemFree in isMinMemoryReached
This commit is contained in:
commit
a76c00de66
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue