git: 6a5e6a50bd55 - main - top(8): add missed SLOCK state to the sorted_state[]
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Jun 2023 05:37:53 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=6a5e6a50bd55c3fb4933abe1edaad3a928700c42
commit 6a5e6a50bd55c3fb4933abe1edaad3a928700c42
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-06-19 16:00:15 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-06-21 05:37:25 +0000
top(8): add missed SLOCK state to the sorted_state[]
Put it near/after the sleep state.
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 15788fe53443..1785db8b9dc4 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1267,7 +1267,7 @@ static const int sorted_state[] = {
[SSLEEP] = 6, /* sleeping */
[SSTOP] = 5, /* stopped/suspended */
[SZOMB] = 2, /* zombie */
- [SWAIT] = 4, /* intr */
+ [SLOCK] = 7, /* blocked on lock */
};