Skip to content

Commit

Permalink
fix: correct reported overdue for scheduled task (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect authored Nov 27, 2024
1 parent f57d18b commit 3cb2989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ public function collect(HealthCollection $collection): void
($maxTaskNextExecTime - $taskDateLimit->getTimestamp()) / 60,
));

$collection->add(SettingsResult::warning('scheduled_task', 'Scheduled tasks overdue', \sprintf('%d mins', $diff), $recommended));
$collection->add(SettingsResult::warning('scheduled_task', 'Scheduled tasks overdue', \sprintf('%d mins', $diff + $maxDiff), $recommended));
}
}

0 comments on commit 3cb2989

Please sign in to comment.