]> granicus.if.org Git - sysstat/commit
sar: Better handle dynamically registered devices
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 9 Dec 2016 10:44:42 +0000 (11:44 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 9 Dec 2016 10:44:42 +0000 (11:44 +0100)
commit039068f11102bc90ebe8cfa11c6959b8a0d930f9
tree06a5797fba7eddf1703d4d83e12bbc61708f2934
parent94ccbf6c13cc32808b35b56b31e5a0cf1a248bfb
sar: Better handle dynamically registered devices

When a newly registered device (network interface or disk) was
supernumerary (i.e. there was no slot left in the list to store it), it
would take the place of another device in the list. This other device
would also appear as new and its counters would jump as if starting from
zero. This patch fixes that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
json_stats.c
pr_stats.c
rndr_stats.c
sa.h
sa_common.c
xml_stats.c