Skip to main content

format_rate

Function format_rate 

Source
pub fn format_rate(bps: Option<f64>) -> String
Expand description

Format a transfer rate in decimal units, e.g. 118.4 MB/s.

Returns UNKNOWN for None and for values that are negative or not finite.