Change Worker to use only MemFree in isMinMemoryReached
This commit is contained in:
parent
956fe99591
commit
9aea59d4e3
|
@ -1013,11 +1013,11 @@ class App
|
||||||
$meminfo[$key] = (int) ($meminfo[$key] / 1024);
|
$meminfo[$key] = (int) ($meminfo[$key] / 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($meminfo['MemAvailable']) || !isset($meminfo['MemFree'])) {
|
if (!isset($meminfo['MemFree'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$free = $meminfo['MemAvailable'] + $meminfo['MemFree'];
|
$free = $meminfo['MemFree'];
|
||||||
|
|
||||||
$reached = ($free < $min_memory);
|
$reached = ($free < $min_memory);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user