Make PHP-CS happy

This commit is contained in:
Philipp 2024-12-30 12:46:24 +01:00
parent 22ce71e792
commit a5649bdaeb
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -55,7 +55,7 @@ final class Daemon extends Console
$this->basePath = $basePath; $this->basePath = $basePath;
$this->system = $system; $this->system = $system;
$this->logger = $logger; $this->logger = $logger;
$this->dba = $dba; $this->dba = $dba;
} }
protected function getHelp(): string protected function getHelp(): string
@ -193,7 +193,7 @@ HELP;
$wait_interval = intval($this->config->get('system', 'cron_interval', 5)) * 60; $wait_interval = intval($this->config->get('system', 'cron_interval', 5)) * 60;
$do_cron = true; $do_cron = true;
$last_cron = 0; $last_cron = 0;
$path = $this->basePath->getPath(); $path = $this->basePath->getPath();
@ -232,7 +232,7 @@ HELP;
// logarithmic wait time calculation. // logarithmic wait time calculation.
// Background: After jobs had been started, they often fork many workers. // Background: After jobs had been started, they often fork many workers.
// To not waste too much time, the sleep period increases. // 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)); $sleep = min(1000000, round(log10($arg) * 1000000, 0));
usleep((int)$sleep); usleep((int)$sleep);