Skip to content

Commit ea0da05

Browse files
committed
feature #32424 [Console] don't redraw progress bar more than every 100ms by default (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] don't redraw progress bar more than every 100ms by default | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no (behavior change) | BC breaks? | no (behavior change) | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Follow up of #26339 Looks like something we can and should do on 4.4 to me. Commits ------- df551e9 [Console] don't redraw progress bar more than every 100ms by default
2 parents 7647209 + df551e9 commit ea0da05

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ final class ProgressBar
5555
* @param OutputInterface $output An OutputInterface instance
5656
* @param int $max Maximum steps (0 if unknown)
5757
*/
58-
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0)
58+
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0.1)
5959
{
6060
if ($output instanceof ConsoleOutputInterface) {
6161
$output = $output->getErrorOutput();

0 commit comments

Comments
 (0)