From 7e15092e97c3937d25cd2b713cee8c8be9a65bb0 Mon Sep 17 00:00:00 2001 From: Shane C Date: Tue, 10 Dec 2024 07:52:07 -0500 Subject: [PATCH] fix progress bar update on final render --- progress/progress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress/progress.go b/progress/progress.go index 6999fee..28d55fe 100644 --- a/progress/progress.go +++ b/progress/progress.go @@ -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)