diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-07-31 04:23:31 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-07-31 04:23:31 +0000 |
commit | 9aa4ad83dba58390804720afe03e701f7fed657e (patch) | |
tree | 07802b218655fa1400ac07ef8777bb2a8d649b8b | |
parent | ad1b458d74ae3c53db2a805cf6927eb4271b6c71 (diff) |
print the number of GCs with print_fld_size instead of print_fld_uint.
this makes a large number of GCs appear as something like "26K"
instead of "*".
-rw-r--r-- | usr.bin/systat/pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/pool.c b/usr.bin/systat/pool.c index 31ff66556bf..99b28b8e7da 100644 --- a/usr.bin/systat/pool.c +++ b/usr.bin/systat/pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pool.c,v 1.14 2017/07/29 16:03:10 florian Exp $ */ +/* $OpenBSD: pool.c,v 1.15 2017/07/31 04:23:30 dlg Exp $ */ /* * Copyright (c) 2008 Can Erkin Acar <canacar@openbsd.org> * @@ -558,7 +558,7 @@ pool_cache_show(const struct pool_cache_info *pc) print_fld_str(FLD_POOL_CACHE_NAME, pc->name); print_fld_uint(FLD_POOL_CACHE_LEN, kpc->pr_len); print_fld_uint(FLD_POOL_CACHE_IDLE, kpc->pr_nitems); - print_fld_uint(FLD_POOL_CACHE_NGC, kpc->pr_ngc); + print_fld_size(FLD_POOL_CACHE_NGC, kpc->pr_ngc); for (cpu = 0; cpu < ncpusfound; cpu++) { kpcc = &pc->cache_cpus[cpu]; |