Skip to main content

format_bytes

Function format_bytes 

Source
pub fn format_bytes(bytes: i64) -> String
Expand description

Format a byte count as a short human string (B/KB/MB/GB). Gigabytes get one decimal place, with a trailing .0 trimmed.