Expand description
The machine’s network byte counters for the telemetry tick (sysinfo.rs).
The tick only needs the bytes sent and received, summed over the machine’s real interfaces.
sysinfo::Networks::refresh on Windows also looks up every adapter’s MAC and IP addresses on
each call (GetAdaptersAddresses), which srv never reads: about a tenth of an idle srv’s CPU.
On Windows this reads the counters from GetIfTable2 directly, with the interface filter
sysinfo applies; elsewhere it still uses sysinfo.
Re-exports§
pub use imp::NetCounters;
Modules§
Structs§
- IfRow
- One row of the interface table, reduced to what the filter and the sum need.
Functions§
- sum_
rows (bytes sent, bytes received)over the usable interfaces that are alone in their group, which is the setsysinfo::Networkskeeps.