Merge pull request #6171 from JonnyTischbein/issue_worker_free_mem

Change Worker to use only MemFree in isMinMemoryReached
This commit is contained in:
Hypolite Petovan 2018-11-19 21:40:46 -05:00 committed by GitHub
commit a76c00de66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);