diff options
author | keramida <keramida@FreeBSD.org> | 2005-04-16 15:43:38 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-04-16 15:43:38 +0000 |
commit | 7c969cff250ea9feb3359dac3ce714056026c68a (patch) | |
tree | 26425a33f755f9e714b6b122bacb6c8c71f8cc20 /usr.bin/top | |
parent | dfe8329b5825561019b4b9ed15c58b19a3f65640 (diff) | |
download | FreeBSD-src-7c969cff250ea9feb3359dac3ce714056026c68a.zip FreeBSD-src-7c969cff250ea9feb3359dac3ce714056026c68a.tar.gz |
Reduce the width of the THR column to 4 characters, to avoid wrap-around
of lines in SMP machines (which are wider), until we have a better way
of handling window sizes & columns in top.
Caught by: ache, Andre Guibert de Bruet <andy@siliconlandmark.com>
Point hat: keramida
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 98248d5..4aebd2c 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -103,17 +103,17 @@ static char io_header[] = "%5d %-*.*s %6ld %6ld %6ld %6ld %6ld %6ld %6.2f%% %.*s" static char smp_header_thr[] = - " PID %-*.*s THR PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND"; + " PID %-*.*s THR PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND"; static char smp_header[] = - " PID %-*.*s " "PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND"; + " PID %-*.*s " "PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND"; #define smp_Proc_format \ "%5d %-*.*s %s%3d %4d%7s %6s %-6.6s %1x%7s %5.2f%% %5.2f%% %.*s" static char up_header_thr[] = - " PID %-*.*s THR PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND"; + " PID %-*.*s THR PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND"; static char up_header[] = - " PID %-*.*s " "PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND"; + " PID %-*.*s " "PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND"; #define up_Proc_format \ "%5d %-*.*s %s%3d %4d%7s %6s %-6.6s%.0d%7s %5.2f%% %5.2f%% %.*s" @@ -657,7 +657,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(int)) int state; struct rusage ru, *rup; long p_tot, s_tot; - char *proc_fmt, thr_buf[7]; + char *proc_fmt, thr_buf[6]; /* find and remember the next proc structure */ hp = (struct handle *)handle; |