Change HumanBytes to use binary prefixes (1024-based) instead of decimal (1000-based) for file size formatting. This fixes the rounding error where 3072 bytes was displayed as '3.1 KB' instead of '3 KB'. The decimal constants (KiloByte, MegaByte, etc.) are preserved for other uses like buffer sizes and memory capacity. Fixes #13405 |
||
|---|---|---|
| .. | ||
| bytes.go | ||
| bytes_test.go | ||
| format.go | ||
| format_test.go | ||
| time.go | ||
| time_test.go | ||