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
+1 -1
View File
@@ -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")