Skip to main content

bytes_text

Function bytes_text 

Source
pub fn bytes_text(bytes: u64) -> String
Expand description

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.