Print bytes in human-readable format. #18

This commit is contained in:
Andrey Smirnov
2014-03-17 17:05:38 +04:00
parent 099806aa82
commit e5de8b9353
11 changed files with 11 additions and 11 deletions

2
debian/remote.go vendored
View File

@@ -421,7 +421,7 @@ func (repo *RemoteRepo) Download(progress aptly.Progress, d aptly.Downloader, pa
// free up package list, we don't need it after this point
list = nil
progress.Printf("Download queue: %d items, %.2f GiB size\n", count, float64(downloadSize)/(1024.0*1024.0*1024.0))
progress.Printf("Download queue: %d items (%s)\n", count, utils.HumanBytes(downloadSize))
progress.InitBar(downloadSize, true)