]> granicus.if.org Git - procps-ng/commitdiff
sort doc, and compile w/ gcc 2.95.x
authoralbert <>
Fri, 29 Nov 2002 18:49:32 +0000 (18:49 +0000)
committeralbert <>
Fri, 29 Nov 2002 18:49:32 +0000 (18:49 +0000)
top.1
top.c

diff --git a/top.1 b/top.1
index 663053421e18ce504ac8ff0d70b0cfdb35a139dc..730900233c1a08e3784c326a0c7bcf2f7133a2a5 100644 (file)
--- 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 ed3e7661627ea9debea5bf17928ce2c64cbf90d3..040426ee44b289f0e82ea94ef41ca434285774da 100644 (file)
--- 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;