From 6ac59352a88f004e4590fd66b70358dee81c1887 Mon Sep 17 00:00:00 2001 From: rstone Date: Thu, 25 Nov 2010 18:32:02 +0000 Subject: [PATCH] MFC 215474 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) git-svn-id: svn://svn.freebsd.org/base/stable/8@215827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/netstat/if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 99a820aa7..e02997e71 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -633,6 +633,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; -- 2.45.0