aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
diff options
context:
space:
mode:
authorGiorgos Keramidas <keramida@FreeBSD.org>2005-04-16 15:43:38 +0000
committerGiorgos Keramidas <keramida@FreeBSD.org>2005-04-16 15:43:38 +0000
commit5970af4cd4235a28bafea48a03c394c80f0ade7c (patch)
tree26425a33f755f9e714b6b122bacb6c8c71f8cc20 /usr.bin/top/machine.c
parentea35b592d46e1b53970e9252797310f00421bc0d (diff)
downloadsrc-5970af4cd4235a28bafea48a03c394c80f0ade7c.tar.gz
src-5970af4cd4235a28bafea48a03c394c80f0ade7c.zip
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
Notes
Notes: svn path=/head/; revision=145155
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r--usr.bin/top/machine.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 98248d55da0b..4aebd2cbcc49 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;