$this->basePath = $basePath;
$this->system = $system;
$this->logger = $logger;
- $this->dba = $dba;
+ $this->dba = $dba;
}
protected function getHelp(): string
$wait_interval = intval($this->config->get('system', 'cron_interval', 5)) * 60;
- $do_cron = true;
+ $do_cron = true;
$last_cron = 0;
$path = $this->basePath->getPath();
// logarithmic wait time calculation.
// Background: After jobs had been started, they often fork many workers.
// To not waste too much time, the sleep period increases.
- $arg = (($seconds + 1) / ($wait_interval / 9)) + 1;
+ $arg = (($seconds + 1) / ($wait_interval / 9)) + 1;
$sleep = min(1000000, round(log10($arg) * 1000000, 0));
usleep((int)$sleep);