Skip to content

Commit

Permalink
Remove time left section where total is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
msyrus committed Feb 28, 2019
1 parent dec98e8 commit 6bf91b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@ func (pb *ProgressBar) write(total, current int64) {
left = time.Duration(total-current) * perEntry
left -= time.Since(lastChangeTime)
left = (left / time.Second) * time.Second
} else {
left = time.Duration(currentFromStart) * perEntry
left = (left / time.Second) * time.Second
}
if left > 0 {
timeLeft := Format(int64(left)).To(U_DURATION).String()
Expand Down

0 comments on commit 6bf91b3

Please sign in to comment.