Files
glances/tests
Nguyen Thanh Dat 061402b012 fix(containers): aggregate network stats over all container interfaces
_get_network_stats() read the container network counters from a single
hardcoded interface. The Docker stats endpoint returns one entry per
container interface, so a container attached to several networks gets
eth0, eth1... and everything past eth0 was silently dropped, making the
reported RX/TX rates too low.

Sum rx_bytes/tx_bytes across all the interfaces instead. Loopback is
excluded, since Docker-API-compatible runtimes have been observed to
report it and its traffic would inflate the totals. Interfaces with
missing counters are skipped rather than aborting the whole method, so
one malformed interface no longer discards the valid ones. None is still
returned when nothing usable remains, keeping --network host containers
unchanged.

The output contract is untouched: same keys, same types, same units.

Fixes #3669
2026-08-19 10:35:48 +07:00
..
2026-08-07 10:54:14 +02:00
2026-05-21 03:06:41 +00:00
2026-07-18 09:29:06 +02:00