Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 17:26:31 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 17:26:31 +0300
commit9a2902553495baa6fb1515176a8bbaab5633fb58 (patch)
treef795d5a7053ee1ed69c989946cc9136cd5917550 /core/Command/Maintenance
parent652ab6da3f5309b0ea6e1e19ce4d915ecb6cc9b1 (diff)
Parameter of RepairAdvanceEvent is actually an increment, not a step id
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command/Maintenance')
-rw-r--r--core/Command/Maintenance/Repair.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php
index 7f8d98d758d..e1d1862f3f4 100644
--- a/core/Command/Maintenance/Repair.php
+++ b/core/Command/Maintenance/Repair.php
@@ -127,7 +127,7 @@ class Repair extends Command {
if ($event instanceof RepairStartEvent) {
$this->progress->start($event->getMaxStep());
} elseif ($event instanceof RepairAdvanceEvent) {
- $this->progress->advance($event->getCurrentStep());
+ $this->progress->advance($event->getIncrement());
} elseif ($event instanceof RepairFinishEvent) {
$this->progress->finish();
$this->output->writeln('');