]> granicus.if.org Git - sysstat/commit
Use ULLONG_MAX/2 to check if network device counters have overflown
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 16 Dec 2017 09:41:10 +0000 (10:41 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 16 Dec 2017 09:41:10 +0000 (10:41 +0100)
commit436fb8e6cc69fa5a8a8f735b62fce864e34c0544
treeaf1e34dbefdaacb363314e830311699bbbd64658
parentc83e8a10c752774397fab05d1ad9e89e137623fe
Use ULLONG_MAX/2 to check if network device counters have overflown

Counters's type for stats_net_dev structure is "unsigned long long"
(it used to be "unsigned long" before). So use ULLONG_MAX instead of
ULONG_MAX to try to guess if counters have overflown.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa_common.c