aboutsummaryrefslogtreecommitdiff
path: root/internal/progress/humanize.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/progress/humanize.go')
-rw-r--r--internal/progress/humanize.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/progress/humanize.go b/internal/progress/humanize.go
index fd68e1e9..f13845f7 100644
--- a/internal/progress/humanize.go
+++ b/internal/progress/humanize.go
@@ -9,6 +9,7 @@ func humanizeBytes(n uint64) string {
}
value := float64(n)
+
units := []string{"KiB", "MiB", "GiB", "TiB", "PiB"}
for i := range units {
value /= unit