Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a19c068

Browse files
[Console] don't redraw progress bar more that every 100ms by default
1 parent 400eaa6 commit a19c068

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)