Skip to main content

net_rates

Function net_rates 

Source
pub fn net_rates(
    prev: &[NetCounters],
    cur: &[NetCounters],
    dt_s: f64,
) -> Vec<NetRate>
Expand description

Each interface’s throughput between two snapshots dt_s apart, for the interfaces in both. An interface that has never carried a byte is left out, so an unused one makes no series.