aboutsummaryrefslogtreecommitdiff
path: root/contrib/top
diff options
context:
space:
mode:
authorGiorgos Keramidas <keramida@FreeBSD.org>2005-04-14 15:02:03 +0000
committerGiorgos Keramidas <keramida@FreeBSD.org>2005-04-14 15:02:03 +0000
commit32efd26355e2a1fb9cc98d0ffaa7c404bb378064 (patch)
tree11b507e6e5e0f2b5c5a4050db800007183192c9d /contrib/top
parent9f07f44971c49c881695629959924d3384169da2 (diff)
Notes
Diffstat (limited to 'contrib/top')
-rw-r--r--contrib/top/commands.c2
-rw-r--r--contrib/top/top.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/contrib/top/commands.c b/contrib/top/commands.c
index b79e19afc69e..8d7f33163952 100644
--- a/contrib/top/commands.c
+++ b/contrib/top/commands.c
@@ -78,7 +78,7 @@ n or # - change number of processes to display\n", stdout);
#ifdef ORDER
if (displaymode == DISP_CPU)
fputs("\
-o - specify sort order (pri, size, res, cpu, time)\n", stdout);
+o - specify sort order (pri, size, res, cpu, time, threads)\n", stdout);
else
fputs("\
o - specify sort order (vcsw, ivcsw, read, write, fault, total)\n", stdout);
diff --git a/contrib/top/top.c b/contrib/top/top.c
index d3e1c5698ab5..2f7fa2f31d76 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -84,6 +84,7 @@ void quit();
static int max_topn; /* maximum displayable processes */
/* miscellaneous things */
+struct process_select ps;
char *myname = "top";
jmp_buf jmp_int;
@@ -179,7 +180,6 @@ char *argv[];
char *iptr;
char no_command = 1;
struct timeval timeout;
- struct process_select ps;
#ifdef ORDER
char *order_name = NULL;
int order_index = 0;
@@ -987,8 +987,10 @@ restart:
case CMD_thrtog:
ps.thread = !ps.thread;
new_message(MT_standout | MT_delayed,
- " %sisplaying threads.",
- ps.thread ? "D" : "Not d");
+ "Displaying threads %s",
+ ps.thread ? "separately" : "as a count");
+ header_text = format_header(uname_field);
+ reset_display();
putchar('\r');
break;
case CMD_viewtog: