git: 8a5c2ed0c7f6 - stable/13 - top(8): document the actual sort order for process sorting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Jun 2023 00:57:17 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8a5c2ed0c7f66cfa5c3b40696c9b531be17886a5 commit 8a5c2ed0c7f66cfa5c3b40696c9b531be17886a5 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-06-19 15:57:00 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-06-27 21:04:15 +0000 top(8): document the actual sort order for process sorting (cherry picked from commit d636fc5bd1e218d2eb4d017b93ee59f5db5c8507) --- 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[] = {