svn commit: r215474 - head/usr.bin/netstat
Ryan Stone
rstone at FreeBSD.org
Thu Nov 18 23:46:56 UTC 2010
Author: rstone
Date: Thu Nov 18 23:46:55 2010
New Revision: 215474
URL: http://svn.freebsd.org/changeset/base/215474
Log:
When netstat was run with -i/-I and -w1 to produce running counters, the idrop
field printed an absolute value rather than the delta from the last value
Approved by: emaste (mentor)
MFC after: 1 week
Modified:
head/usr.bin/netstat/if.c
Modified: head/usr.bin/netstat/if.c
==============================================================================
--- head/usr.bin/netstat/if.c Thu Nov 18 22:17:20 2010 (r215473)
+++ head/usr.bin/netstat/if.c Thu Nov 18 23:46:55 2010 (r215474)
@@ -627,6 +627,7 @@ loop:
}
ip->ift_ip = ifnet.if_ipackets;
ip->ift_ie = ifnet.if_ierrors;
+ ip->ift_id = ifnet.if_iqdrops;
ip->ift_ib = ifnet.if_ibytes;
ip->ift_op = ifnet.if_opackets;
ip->ift_oe = ifnet.if_oerrors;
More information about the svn-src-head
mailing list