Update download.go

This commit is contained in:
katikatidimon 2026-01-29 14:53:45 +01:00 committed by GitHub
parent a179ccf6f0
commit d006bf86f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,6 +274,9 @@ func (w *downloadWriter) Write(buf []byte) (int, error) {
// Report progress.
w.written += int64(n)
if w.size <= 0 {
return n, err
}
pct := w.written * 10 / w.size * 10
if pct != w.lastpct {
if w.lastpct != 0 {