diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-19 14:30:12 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-08-19 14:30:12 +0000 |
commit | 4eac72b44d0add2371b59dc9bd7ff2691d490990 (patch) | |
tree | 4e4c47dfd5cd7f470cee40e6c8ad9ea9414c4b92 /usr.bin | |
parent | f7531e5d4a271756941343ced4c6170d950124ba (diff) |
number of mbuf clusters is not the same as number of pages allocated for 'em; noticed by dsb@uvm.poi.dvo.ru
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index cc918e10c72..9929dd648bb 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbuf.c,v 1.19 2003/06/03 02:56:13 millert Exp $ */ +/* $OpenBSD: mbuf.c,v 1.20 2003/08/19 14:30:11 mickey Exp $ */ /* $NetBSD: mbuf.c,v 1.9 1996/05/07 02:55:03 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)mbuf.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: mbuf.c,v 1.19 2003/06/03 02:56:13 millert Exp $"; +static char *rcsid = "$OpenBSD: mbuf.c,v 1.20 2003/08/19 14:30:11 mickey Exp $"; #endif #endif /* not lint */ @@ -194,7 +194,7 @@ mbpr(u_long mbaddr, u_long mbpooladdr, u_long mclpooladdr) plural((int)mbstat.m_mtypes[i]), i); } printf("%lu/%lu/%lu mbuf cluster pages in use (current/peak/max)\n", - (u_long)(mclpool.pr_nget - mclpool.pr_nput), + (u_long)(mclpool.pr_npages - mclpool.pr_nidle), (u_long)mclpool.pr_hiwat, (u_long)mclpool.pr_maxpages); totmem = (mbpool.pr_npages * page_size) + (mclpool.pr_npages * page_size); |