pub fn bytes_text(bytes: u64) -> String
bytes for people: under 1,024 as 1023 B, then in KB, MB and GB with one decimal, rounded down (1.0 KB is 1,024 bytes, 1.0 MB 1,048,576), in integers.
bytes
1023 B
KB
MB
GB
1.0 KB
1.0 MB