]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top: fix sorting by pid (-o pid)
authorKyle Evans <kevans@FreeBSD.org>
Mon, 13 Feb 2023 06:39:04 +0000 (00:39 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 13 Feb 2023 06:43:32 +0000 (00:43 -0600)
commitdeb63adf945d446ed91a9d84124c71f15ae571d1
tree2cd545d0db4d6b217c0907ca32ab44ea007c6626
parentf123c6c425d4161b06f237996662496abbd78b94
top: fix sorting by pid (-o pid)

The 'pid' order was added, but the equivalent comparator was not back in
8b800d3af2d8c ("Add the PID column to the list of sort keys.").
`ordernames` indices need to match `compares` indices in order for this
to work.

A future commit will restructure all of this to make it less error prone
going forward (see D37083).

MFC after: 3 days
Reviewed by: pstef (D37083)
usr.bin/top/machine.c