Cron parallelization

* refactor counts
This commit is contained in:
Eric Espie
2022-07-06 10:11:53 +02:00
parent 149401931e
commit 7b0b38d47a

View File

@@ -306,7 +306,7 @@ function CronExec($oP, $bVerbose, $bDebug=false)
}
// Tasks to run later
if ($bVerbose && $aTasks == [])
if ($bVerbose && count($aTasks) == 0)
{
$oP->p('--');
$oSearch = new DBObjectSearch('BackgroundTask');
@@ -322,7 +322,7 @@ function CronExec($oP, $bVerbose, $bDebug=false)
}
}
}
if ($aTasks == []) {
if (count($aTasks) == 0) {
if ($bVerbose) {
$oP->p("Sleeping...\n");
}