mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
Print bytes in human-readable format. #18
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ func aptlyDbCleanup(cmd *commander.Command, args []string) error {
|
||||
}
|
||||
context.progress.ShutdownBar()
|
||||
|
||||
context.progress.Printf("Disk space freed: %.2f GiB...\n", float64(totalSize)/1024.0/1024.0/1024.0)
|
||||
context.progress.Printf("Disk space freed: %s...\n", utils.HumanBytes(totalSize))
|
||||
}
|
||||
|
||||
context.progress.Printf("Compacting database...\n")
|
||||
|
||||
Reference in New Issue
Block a user