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
This commit is contained in:
parent
bc2ac2585a
commit
d636fc5bd1
@ -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[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user