pub fn format_bytes(bytes: i64) -> String
Format a byte count as a short human string (B/KB/MB/GB). Gigabytes get one decimal place, with a trailing .0 trimmed.
B
KB
MB
GB
.0