Console ProgressBar: Change redraw default value to 25fps

This commit is contained in:
flack 2020-06-27 12:25:02 +02:00 committed by Nicolas Grekas
parent 80d1f44983
commit b1c38bada7

View File

@ -56,7 +56,7 @@ final class ProgressBar
/**
* @param int $max Maximum steps (0 if unknown)
*/
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0.1)
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 1 / 25)
{
if ($output instanceof ConsoleOutputInterface) {
$output = $output->getErrorOutput();