Browse Source

Change Worker to use only MemFree in isMinMemoryReached

pull/6171/head
Jonny Tischbein 2 years ago
parent
commit
9aea59d4e3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/App.php

+ 2
- 2
src/App.php 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);


Loading…
Cancel
Save