1
0
Fork 0

Some more improvements

This commit is contained in:
Michael 2017-11-05 15:28:55 +00:00
commit 70c08dee1d
3 changed files with 31 additions and 19 deletions

View file

@ -42,17 +42,7 @@ function poller_run($argv, $argc) {
load_hooks();
// At first check the maximum load. We shouldn't continue with a high load
if ($a->maxload_reached()) {
logger('Pre check: maximum load reached, quitting.', LOGGER_DEBUG);
return;
}
// We now start the process. This is done after the load check since this could increase the load.
$a->start_process();
$run_cron = (($argc <= 1) || ($argv[1] != "no_cron"));
Worker::processQueue($run_cron);
return;
}