From 3c578b2a057a329e363abbd3cf31905ffcf5140a Mon Sep 17 00:00:00 2001 From: Ryan Stone Date: Thu, 18 Nov 2010 23:46:55 +0000 Subject: [PATCH] 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 --- 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 b34665447f76..2965caedb682 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -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;