Expand description
Network throughput per interface, from /proc/net/dev
(SRD-118 §3.6).
Structs§
- NetCounters
- One interface’s cumulative byte counters.
- NetRate
- What one interface received and sent over a sample window.
Functions§
- net_
rates - Each interface’s throughput between two snapshots
dt_sapart, for the interfaces in both. An interface that has never carried a byte is left out, so an unused one makes no series. - parse_
net_ dev - Every interface’s cumulative counters but the loopback’s. A line
is
iface: <8 receive fields> <8 transmit fields>; bytes are the first field of each half. - read_
net_ dev - Read
/proc/net/dev. Empty when it cannot be read.