From ae87df81580fac2e740cdd415db6e5a4d550f10a Mon Sep 17 00:00:00 2001 From: albert <> Date: Fri, 29 Nov 2002 18:49:32 +0000 Subject: [PATCH] sort doc, and compile w/ gcc 2.95.x --- top.1 | 22 +++++++++++++++++++++- top.c | 4 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/top.1 b/top.1 index 66305342..73090023 100644 --- a/top.1 +++ b/top.1 @@ -821,7 +821,17 @@ simply decrease the size of the \*(TD(s) above it. .B SORTING\fR of \*(TW .br .in +2 -Before using any of these sort provisions, \*(Me suggests that you +For compatibility, this \*(Me supports most of the former \*(Me sort keys. +Since this is primarily a service to former \*(Me users, these commands do +not appear on any help screen. + command sorted field supported + A start time (non-display) No + M %MEM Yes + N PID Yes + P %CPU Yes + T TIME+ Yes + +Before using any of the following sort provisions, \*(Me suggests that you temporarily turn on column highlighting using the 'x' \*(CI. That will help ensure that the actual sort environment matches your intent. @@ -1085,6 +1095,16 @@ Then set the delay interval to around .3 seconds. After bringing the most active processes into view, what you'll see are the ghostly images of just the currently running tasks. +.New +Delete the existing rcfile, or create a new symlink. +Start this new version then type 'T' (a secret key, \*(Xt 3c. TASK Area +Commands, Sorting) followed by 'W' and 'Q'. + +Restart the program with -d0 (zero delay) and watch while \*(Me climbs the +TIME ladder. +Be as patient as you can, while speculating whether or not \*(Me will ever +reach the \*(Me. + .\" ...................................................................... .SS 6b. Bouncing Windows For these stupid tricks, \*(Me needs \*(AM. diff --git a/top.c b/top.c index ed3e7661..040426ee 100644 --- a/top.c +++ b/top.c @@ -2380,7 +2380,7 @@ static void task_show (const WIN_t *q, const proc_t *p) snprintf(tmp, sizeof(tmp), f, (long)p->flags); for (j = 0; tmp[j]; j++) if ('0' == tmp[j]) tmp[j] = '.'; f = tmp; - MKCOL(); + MKCOL(""); } break; case P_FLT: @@ -2407,7 +2407,7 @@ static void task_show (const WIN_t *q, const proc_t *p) case P_PRI: if (-99 > p->priority || 999 < p->priority) { f = " RT "; - MKCOL(); + MKCOL(""); } else MKCOL((int)p->priority); break;