]> granicus.if.org Git - procps-ng/commit
ps: enabled sort with 'utilization' related specifiers
authorJim Warner <james.warner@comcast.net>
Sun, 6 Mar 2022 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Mon, 7 Mar 2022 09:29:06 +0000 (20:29 +1100)
commit6490349e64a3db9742c48c45b4f86a670fdc72d3
treed1c3c8556d79470ba444d32cb2cab590d4296b25
parente4e7991a26f018271bcc98b9f6a768e671cc20ab
ps: enabled sort with 'utilization' related specifiers

When %CUU was added, in the commit referenced below, I
stated that 4 similar specifiers already existed. Well
I misspoke since there is actually 5 including 'util'.

Each of those fields had no sort capability. Since the
values are dynamically calculated, they were forced to
use 'PIDS_extra' as the format_array 'sr' designation.

Now each will use 'PIDS_UTILIZATION' and be sort-able.

[ yes, sometimes the calculated values could contain ]
[ reaped children while the sort field does not. but ]
[ such disparity depends on obscure bsd/gnu options. ]

Reference(s):
. Mar, 2022 - added %CUU
commit 2ac72e2e801e015532b555ae0f2272c8ecef2c8b

Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/common.h
ps/output.c