summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-06-11 19:05:29 +0000
committerjhb <jhb@FreeBSD.org>2013-06-11 19:05:29 +0000
commitaf94e1f92e06a87769668f29884f2a0f4fb65cfb (patch)
tree3347613359b16c405ea8ae5e65d868a01e557d26 /usr.bin
parent9d0815fcd162db9197ce3750a1e17c721ecbd315 (diff)
downloadFreeBSD-src-af94e1f92e06a87769668f29884f2a0f4fb65cfb.zip
FreeBSD-src-af94e1f92e06a87769668f29884f2a0f4fb65cfb.tar.gz
Bump the CPU/WCPU column width by one so that it fits values from 100% up
to 999.99% CPU. It still won't be aligned if you have a multithreaded process using more than 1000% CPU (e.g. idle process on an idle 12-way system), but 100% is a common case. Submitted by: Jeremy Chadwick (partial) MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index e01143d..190ea26 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -107,20 +107,20 @@ static char io_header[] =
"%5d%s %-*.*s %6ld %6ld %6ld %6ld %6ld %6ld %6.2f%% %.*s"
static char smp_header_thr[] =
- " PID%s %-*.*s THR PRI NICE SIZE RES STATE C TIME %6s COMMAND";
+ " PID%s %-*.*s THR PRI NICE SIZE RES STATE C TIME %7s COMMAND";
static char smp_header[] =
- " PID%s %-*.*s " "PRI NICE SIZE RES STATE C TIME %6s COMMAND";
+ " PID%s %-*.*s " "PRI NICE SIZE RES STATE C TIME %7s COMMAND";
#define smp_Proc_format \
- "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %2d%7s %5.2f%% %.*s"
+ "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %2d%7s %6.2f%% %.*s"
static char up_header_thr[] =
- " PID%s %-*.*s THR PRI NICE SIZE RES STATE TIME %6s COMMAND";
+ " PID%s %-*.*s THR PRI NICE SIZE RES STATE TIME %7s COMMAND";
static char up_header[] =
- " PID%s %-*.*s " "PRI NICE SIZE RES STATE TIME %6s COMMAND";
+ " PID%s %-*.*s " "PRI NICE SIZE RES STATE TIME %7s COMMAND";
#define up_Proc_format \
- "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s%.0d%7s %5.2f%% %.*s"
+ "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s%.0d%7s %6.2f%% %.*s"
/* process state names for the "STATE" column of the display */
OpenPOWER on IntegriCloud