1
0
mirror of https://github.com/coalaura/up.git synced 2025-07-18 21:53:23 +00:00

improve logging

This commit is contained in:
Laura
2025-06-20 18:11:26 +02:00
parent e70f7f36f9
commit 1f1fb4c6e3
5 changed files with 20 additions and 21 deletions

View File

@ -25,7 +25,7 @@ func (pr *ProgressReader) Read(p []byte) (int, error) {
pr.read += int64(n)
percentage := float64(pr.read) / float64(pr.total) * 100
log.Printf("\r%s %.1f%%", pr.label, percentage)
log.Printf("\r%s: %.1f%%", pr.label, percentage)
return n, err
}