diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-25 04:07:07 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-25 04:07:07 +0000 |
commit | 850c26db34d209e1303494ce2f702b3a20061f0f (patch) | |
tree | 73007cfa55282fd73be02ea43113fe12c473fc1d /lib/libkvm | |
parent | 9f40f468004035161dbd379677a6b137d63f321e (diff) | |
download | FreeBSD-src-850c26db34d209e1303494ce2f702b3a20061f0f.zip FreeBSD-src-850c26db34d209e1303494ce2f702b3a20061f0f.tar.gz |
Fix swap radix tree dump formatting ( pstat -ss ), it was printing the
wrong radix for recursive subnodes.
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm_getswapinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c index 32b1672..9d532c5 100644 --- a/lib/libkvm/kvm_getswapinfo.c +++ b/lib/libkvm/kvm_getswapinfo.c @@ -14,7 +14,7 @@ static const char copyright[] = #ifndef lint static const char rcsid[] = - "$Id: kvm_getswapinfo.c,v 1.1 1999/01/22 10:36:04 dillon Exp $"; + "$Id: kvm_getswapinfo.c,v 1.2 1999/01/22 10:57:03 dillon Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -355,9 +355,6 @@ scanradix( int i; int next_skip; - radix >>= BLIST_META_RADIX_SHIFT; - next_skip = skip >> BLIST_META_RADIX_SHIFT; - if (flags & SWIF_DUMP_TREE) { printf("%*.*s(0x%06x,%d) Submap avail=%d big=%d {\n", TABME, @@ -368,6 +365,9 @@ scanradix( ); } + radix >>= BLIST_META_RADIX_SHIFT; + next_skip = skip >> BLIST_META_RADIX_SHIFT; + for (i = 1; i <= skip; i += next_skip) { int r; daddr_t vcount = (count > radix) ? radix : count; |