summaryrefslogtreecommitdiffstats
path: root/contrib/top/commands.c
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2004-07-08 16:45:55 +0000
committerkeramida <keramida@FreeBSD.org>2004-07-08 16:45:55 +0000
commit600bdc3b5526e0f026e54672896d7ad955b9c8b4 (patch)
tree153fa5f6acfe18876ad4e529cbaf3e596408c2e2 /contrib/top/commands.c
parent72f812830f217b50cb5b7e851b69e500996804e5 (diff)
downloadFreeBSD-src-600bdc3b5526e0f026e54672896d7ad955b9c8b4.zip
FreeBSD-src-600bdc3b5526e0f026e54672896d7ad955b9c8b4.tar.gz
Build upon the nice work of Alfred and add sorting capabilities to
the -m "io" mode of top. Approved by: alfred
Diffstat (limited to 'contrib/top/commands.c')
-rw-r--r--contrib/top/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/top/commands.c b/contrib/top/commands.c
index 418dc16..acb8577 100644
--- a/contrib/top/commands.c
+++ b/contrib/top/commands.c
@@ -76,8 +76,12 @@ I - same as 'i'\n\
k - kill processes; send a signal to a list of processes\n\
n or # - change number of processes to display\n", stdout);
#ifdef ORDER
- fputs("\
+ if (displaymode == DISP_CPU)
+ fputs("\
o - specify sort order (pri, size, res, cpu, time)\n", stdout);
+ else
+ fputs("\
+o - specify sort order (read, write, fault, total)\n", stdout);
#endif
fputs("\
r - renice a process\n\
OpenPOWER on IntegriCloud