Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2023 05:37:53 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6a5e6a50bd55 - main - top(8): add missed SLOCK state to the sorted_state[]
Message-ID:  <202306210537.35L5brrG048379@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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	*/
 };
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306210537.35L5brrG048379>