The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d636fc5bd1e218d2eb4d017b93ee59f5db5c8507

commit d636fc5bd1e218d2eb4d017b93ee59f5db5c8507
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2023-06-19 15:57:00 +0000
Commit:     Konstantin Belousov <k...@freebsd.org>
CommitDate: 2023-06-21 05:37:24 +0000

    top(8): document the actual sort order for process sorting
    
    Noted by:       Mark Millard <mark...@yahoo.com>
    Reviewed by:    kevans
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D40607
---
 usr.bin/top/machine.c | 6 +++---
 1 file 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[] = {

Reply via email to