Function tabin_plugins::linux::bytes_to_human_size [−][src]
pub fn bytes_to_human_size(bytes: u64) -> String
Convert a large number to something smaller with a suffix
let human = tabin_plugins::linux::bytes_to_human_size(9999); assert_eq!(human, "9.8K");