git: netstat - Fix netstat -m on core dumps
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Sep 29 10:17:24 PDT 2010
commit 7a52e261d58c007ae4615e067eac8d99a902cd19
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Sep 29 10:15:34 2010 -0700
netstat - Fix netstat -m on core dumps
* Aggregate all ncpus worth of stats when operating on a core dump instead
of just using cpu0. Otherwise the numbers will be wildly incorrect.
Reported-by: Peter Avalos <peter at theshell.com>
Summary of changes:
usr.bin/netstat/main.c | 8 +++--
usr.bin/netstat/mbuf.c | 64 +++++++++++++++++++++++++++++---------------
usr.bin/netstat/netstat.h | 2 +-
3 files changed, 48 insertions(+), 26 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7a52e261d58c007ae4615e067eac8d99a902cd19
--
DragonFly BSD source repository
More information about the Commits
mailing list