]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix integer truncation in affecting systat -ifstat
authorrstone <rstone@FreeBSD.org>
Mon, 29 Sep 2014 17:38:50 +0000 (17:38 +0000)
committerrstone <rstone@FreeBSD.org>
Mon, 29 Sep 2014 17:38:50 +0000 (17:38 +0000)
commit03edcfbff66639afe11ba1017adda3fd2e58f288
tree1bc6cfff0e6d7d6072f184e90b5ab004839aaa3f
parent57c53dc77d6c623a52956cacd08eadd4b76b2d03
Fix integer truncation in affecting systat -ifstat

The "systat -ifstat" command was using a u_int to store byte counters.
With a 10Gbps or faster interface, this overflows within the default
5 second refresh period.  Switch to using a uint64_t across the board,
which matches the size used for all counters as of r263102.

PR: 182448
MFC after: 1 week
Sponsored by: Sandvine Inc
usr.bin/systat/ifstat.c