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