git: DragonFly_RELEASE_6_4 top(1): Fix STATE column to support all possible states
Aaron LI
aly at crater.dragonflybsd.org
Sat Feb 11 00:05:26 PST 2023
commit b743f33b2a3447ece34220ada78748a28896bcc8
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/b743f33b2a3447ece34220ada78748a28896bcc8
--
DragonFly BSD source repository
More information about the Commits
mailing list