8000 Always redraw at 100%, same like old algorithm · symfony/symfony@5f1d17c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f1d17c

Browse files
committed
Always redraw at 100%, same like old algorithm
1 parent fa3ce29 commit 5f1d17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Helper/ProgressBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function setProgress(int $step)
305305
if ($prevPeriod !== $currPeriod || $this->max === $step) {
306306
$this->display();
307307
}
308-
} elseif (microtime(true) - $this->lastWriteTime >= $this->redrawFrequency) {
308+
} elseif (microtime(true) - $this->lastWriteTime >= $this->redrawFrequency || $this->max === $step) {
309309
$this->display();
310310
}
311311
}

0 commit comments

Comments
 (0)
0