Browse Source

memory check is now also only done once in a while

pull/3522/head
Michael 4 years ago
parent
commit
ba7b4fddea
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      include/poller.php

+ 6
- 6
include/poller.php View File

@ -96,13 +96,13 @@ function poller_run($argv, $argc){
logger('Active worker limit reached, quitting.', LOGGER_DEBUG);
return;
}
Lock::remove('poller_worker');
}
// Check free memory
if ($a->min_memory_reached()) {
logger('Memory limit reached, quitting.', LOGGER_DEBUG);
return;
// Check free memory
if ($a->min_memory_reached()) {
logger('Memory limit reached, quitting.', LOGGER_DEBUG);
return;
}
Lock::remove('poller_worker');
}
// finally the work will be done


Loading…
Cancel
Save