git: top(1): Fix STATE column to support all possible states
Aaron LI
aly at crater.dragonflybsd.org
Sat Feb 11 00:04:46 PST 2023
commit 8c086bfb612f664fc2bec0145d022852aac428b5
Author: Aaron LI <aly at aaronly.me>
Date: Thu Feb 9 23:42:08 2023 +0800
top(1): Fix STATE column to support all possible states
The old code didn't check all the process states (e.g., SIDL, SSTOP) to
format the STATE column. So the STATE result could be a bit inaccurate.
Improve the STATE formatting code to explicitly check for all possible
states, similar to the count calculations of all process states.
Update the man page to reflect the current display.
Summary of changes:
usr.bin/top/m_dragonfly.c | 73 +++++++++++++++++++++++++++++------------------
usr.bin/top/top.1 | 18 +++++++-----
2 files changed, 56 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8c086bfb612f664fc2bec0145d022852aac428b5
--
DragonFly BSD source repository
More information about the Commits
mailing list