Skip to content

Commit

Permalink
Avoid showing confusing progressbar memory usage, force format
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Nov 28, 2022
1 parent 7f2e529 commit a3160a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Command/ErrorsConsoleStyle.php
Expand Up @@ -118,6 +118,7 @@ private function wrap(array $rows, int $terminalWidth, int $maxHeaderWidth): arr
public function createProgressBar(int $max = 0): ProgressBar
{
$this->progressBar = parent::createProgressBar($max);
$this->progressBar->setFormat(' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s%');

$ci = $this->isCiDetected();
$this->progressBar->setOverwrite(!$ci);
Expand Down

0 comments on commit a3160a6

Please sign in to comment.