mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-16 06:24:12 +01:00
Cron parallelization
* refactor counts
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user