diff options
author | John Baldwin <jhb@FreeBSD.org> | 2008-10-01 22:01:07 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2008-10-01 22:01:07 +0000 |
commit | b2ce9725370692b8dda994d51810755188dcdfff (patch) | |
tree | 0b6afb5bc45859346dbb1d3d2ed3929741d19f36 /usr.bin/top | |
parent | 3d074cf37b211d441b20dbbec728c86118b0bd8f (diff) | |
download | src-b2ce9725370692b8dda994d51810755188dcdfff.tar.gz src-b2ce9725370692b8dda994d51810755188dcdfff.zip |
Make the CPU column in top always be 2 characters and print in decimal
rather than hex.
Requested by: rwatson
Notes
Notes:
svn path=/head/; revision=183526
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 01d168f97321..9754c6d35c24 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -106,12 +106,12 @@ 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 %6s 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 %6s COMMAND"; #define smp_Proc_format \ - "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %1x%7s %5.2f%% %.*s" + "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %2d%7s %5.2f%% %.*s" static char up_header_thr[] = " PID%s %-*.*s THR PRI NICE SIZE RES STATE TIME %6s COMMAND"; |