diff options
| author | David Malone <dwmalone@FreeBSD.org> | 2000-08-19 08:32:59 +0000 |
|---|---|---|
| committer | David Malone <dwmalone@FreeBSD.org> | 2000-08-19 08:32:59 +0000 |
| commit | a5c4836d399dbb00ba605ca5fd75caac0582ffc5 (patch) | |
| tree | 53b27f57b7a0216a0a4994f9def58b864b29377c /usr.bin/netstat | |
| parent | 546eb2b18e4cae31a32e5bf6522d3fe82b846514 (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat')
| -rw-r--r-- | usr.bin/netstat/mbuf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index 6ad3fdbc293b..32c0751bc246 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -176,9 +176,13 @@ mbpr() printf("%lu/%lu/%u mbuf clusters in use (current/peak/max)\n", mbstat.m_clusters - mbstat.m_clfree, mbstat.m_clusters, nmbclusters); - totmem = mbstat.m_mbufs * MSIZE + mbstat.m_clusters * MCLBYTES; + printf("%lu/%lu m_ext reference counters (in use/allocated)\n", + mbstat.m_refcnt - mbstat.m_refree, mbstat.m_refcnt); + totmem = mbstat.m_mbufs * MSIZE + mbstat.m_clusters * MCLBYTES + + mbstat.m_refcnt * sizeof(union mext_refcnt); totfree = mbstat.m_clfree * MCLBYTES + - MSIZE * (mbstat.m_mbufs - totmbufs); + MSIZE * (mbstat.m_mbufs - totmbufs) + mbstat.m_refree * + sizeof(union mext_refcnt); printf("%u Kbytes allocated to network (%d%% in use)\n", totmem / 1024, (unsigned) (totmem - totfree) * 100 / totmem); printf("%lu requests for memory denied\n", mbstat.m_drops); |
