mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
Print bytes in human-readable format. #18
This commit is contained in:
2
debian/remote.go
vendored
2
debian/remote.go
vendored
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user