aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2023-06-19 15:57:00 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2023-06-21 05:37:24 +0000
commitd636fc5bd1e218d2eb4d017b93ee59f5db5c8507 (patch)
tree8ef3da87415dbbbc12b537a1d3fecb5bca6c5e24 /usr.bin
parentbc2ac2585aa89c110861972aeb243719ea5012b8 (diff)
downloadsrc-d636fc5bd1e218d2eb4d017b93ee59f5db5c8507.tar.gz
src-d636fc5bd1e218d2eb4d017b93ee59f5db5c8507.zip
top(8): document the actual sort order for process sorting
Noted by: Mark Millard <marklmi@yahoo.com> Reviewed by: kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40607
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 033861d3f7fb..15788fe53443 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1256,9 +1256,9 @@ compare_tid(const void *p1, const void *p2)
* distinct keys. The keys (in descending order of importance) are:
* percent cpu, cpu ticks, state, resident set size, total virtual
* memory usage. The process states are ordered as follows (from least
- * to most important): WAIT, zombie, sleep, stop, start, run. The
- * array declaration below maps a process state index into a number
- * that reflects this ordering.
+ * to most important): run, zombie, idle, interrupt wait, stop, sleep.
+ * The array declaration below maps a process state index into a
+ * number that reflects this ordering.
*/
static const int sorted_state[] = {