mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 12:24:50 +02:00
fix: Address review comment
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
committed by
backportbot[bot]
parent
81ee579f65
commit
fba5fee080
@@ -52,7 +52,7 @@ class TaskProcessingWorkerIsRunning implements ISetupCheck {
|
||||
);
|
||||
}
|
||||
$lastIteration = (int)$this->appConfig->getValueString('core', 'taskprocessing_worker_last_iteration', lazy: true);
|
||||
if ($lastIteration > $this->timeFactory->now()->getTimestamp() - 60 * self::IS_RUNNING_IN_LAST_X_MINUTES) {
|
||||
if ($lastIteration > $this->timeFactory->now()->getTimestamp() - (60 * self::IS_RUNNING_IN_LAST_X_MINUTES)) {
|
||||
return SetupResult::success(
|
||||
$this->l10n->n('The Task Processing worker has run in the last minute.', 'The Task Processing worker has run in the last %n minute.', self::IS_RUNNING_IN_LAST_X_MINUTES)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user