Skip to main content

format_rate

Function format_rate 

Source
pub fn format_rate(bytes_per_sec: u64) -> String
Expand description

Format a byte-per-second rate as a human-readable string.

Note: rates use the KB/s / MB/s suffix (without the i) to match libtorrent progress output. Sub-KB/s values are reported in raw B/s.