Function as_kb

Source
pub fn as_kb(bytes: f64, si: bool, short: bool) -> String
Expand description

Display KB or KiB if short is false, otherwise if short is true and the value is greater than 1MB or 1MiB, display units using as_data_size().