Skip to content

Commit

Permalink
Removed unnecessary spaces from the ProgressBar
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimpf committed Apr 12, 2023
1 parent 8d27192 commit a2b631f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Internals/ProgressBarWorker/HasProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ private function createProgressBar(): void {
$this->progressBar->setRedrawFrequency( 100 );
$this->progressBar->minSecondsBetweenRedraws( 0.1 );
$this->progressBar->maxSecondsBetweenRedraws( 0.2 );
$this->progressBar->setFormat(" %current% of %max%: %message%\n".
" [%bar%] %percent:3s%%\n".
" elapsed: %elapsed:6s%, remaining: %remaining:-6s%, %items_per_second% items/s".(PARALLEL_EXT_LOADED ? "\n" : ',').
" memory: %threads_memory%\n");
$this->progressBar->setFormat(format:
"%current% of %max%: %message%\n".
"[%bar%] %percent:3s%%\n".
"elapsed: %elapsed:6s%, remaining: %remaining:-6s%, %items_per_second% items/s".(PARALLEL_EXT_LOADED ? "\n" : ',').
"memory: %threads_memory%\n");
// set initial values
$this->progressBar->setMessage('Starting...');
$this->progressBar->setMessage('??', 'items_per_second');
Expand Down

0 comments on commit a2b631f

Please sign in to comment.