fix progress bar update on final render
This commit is contained in:
parent
528a667489
commit
7e15092e97
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func (p *ProgressBar) render(final bool) {
|
|||
numBlank := 40 - numFilled
|
||||
donePercent := math.Round(float64(p.currentBytes) / float64(p.maxBytes) * 100)
|
||||
|
||||
if int(donePercent) == p.currentPercent {
|
||||
if int(donePercent) == p.currentPercent && !final {
|
||||
return
|
||||
}
|
||||
p.currentPercent = int(donePercent)
|
||||
|
|
Loading…
Reference in a new issue