summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2010-11-18 23:46:55 +0000
committerrstone <rstone@FreeBSD.org>2010-11-18 23:46:55 +0000
commit562d278523a62b2568bd70c090839f79db28f06c (patch)
tree21ed693938cdaba32eb0ededfdc3c027635db4c7 /usr.bin
parent6377f0ee1a5b88682c352cae417eba695645e0b5 (diff)
downloadFreeBSD-src-562d278523a62b2568bd70c090839f79db28f06c.zip
FreeBSD-src-562d278523a62b2568bd70c090839f79db28f06c.tar.gz
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
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index b346654..2965cae 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;
OpenPOWER on IntegriCloud