diff options
| author | 2026-03-08 17:53:45 +0800 | |
|---|---|---|
| committer | 2026-03-08 17:53:45 +0800 | |
| commit | 3fe07dd316bde2ea625166176b2285bf0c631889 (patch) | |
| tree | 181a5aa36765a98a2df43c9ab685cb241fd6a724 /internal/progress/humanize.go | |
| parent | internal/progress: Use range here (diff) | |
| signature | No signature | |
*: Fix lints
Diffstat (limited to 'internal/progress/humanize.go')
| -rw-r--r-- | internal/progress/humanize.go | 1 |
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 |
