mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 15:21:00 -04:00
fix: Fix logic error to make tests pass
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
cf90bf3da7
commit
74b7ce627c
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ class TaskProcessingSuccessRate implements ISetupCheck {
|
|||
|
||||
public function run(): SetupResult {
|
||||
$taskCount = 0;
|
||||
$lastNDays = 1;
|
||||
$lastNDays = 0;
|
||||
while ($taskCount === 0 && $lastNDays < self::MAX_DAYS) {
|
||||
$lastNDays++;
|
||||
// userId: '' means no filter, whereas null would mean guest
|
||||
|
|
@ -56,7 +56,7 @@ class TaskProcessingSuccessRate implements ISetupCheck {
|
|||
}
|
||||
$failedCount = 0;
|
||||
foreach ($tasks as $task) {
|
||||
if ($task->getEndedAt() !== null) {
|
||||
if ($task->getEndedAt() === null) {
|
||||
continue; // task was not picked up yet
|
||||
}
|
||||
$status = $task->getStatus();
|
||||
|
|
|
|||
Loading…
Reference in a new issue