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
This commit is contained in:
Ryan Stone 2010-11-18 23:46:55 +00:00
parent d2014f5180
commit 3c578b2a05
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215474

View File

@ -627,6 +627,7 @@ sidewaysintpr(int interval1, u_long off)
}
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;