ollama/format
Nathan Nguyen 524486b412 format: use binary prefixes for HumanBytes file size formatting
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
2025-12-29 22:05:26 -05:00
..
bytes.go format: use binary prefixes for HumanBytes file size formatting 2025-12-29 22:05:26 -05:00
bytes_test.go format: use binary prefixes for HumanBytes file size formatting 2025-12-29 22:05:26 -05:00
format.go lint 2024-08-01 17:06:06 -07:00
format_test.go test: add test cases for HumanNumber (#9108) 2025-02-18 11:35:26 -08:00
time.go Ollama `ps` command for showing currently loaded models (#4327) 2024-05-13 17:17:36 -07:00
time_test.go chore(all): replace instances of interface with any (#10067) 2025-04-02 09:44:27 -07:00