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

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: divide by Zero chance in ProgressBar
  • Loading branch information
freimair committed Aug 12, 2022
commit 50d6cd18c7fba0b7f619eb5808308e6bc5d74755
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Helper/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function getEstimated(): float

public function getRemaining(): float
{
if (!$this->step) {
if (!$this->step || $this->step === $this->startingStep) {
return 0;
}

Expand Down