The field width of the THR column header must be increased by 1 as thread IDs are minimum 6 digits long. THR USERNAME PRI NICE SIZE RES SWAP STATE C TIME CPU COMMAND 100889 trond 20 0 15152K 5568K 0K CPU16 16 0:00 0.20% top vs THR USERNAME PRI NICE SIZE RES SWAP STATE C TIME CPU COMMAND 100889 trond 20 0 15152K 5568K 0K CPU16 16 0:00 0.20% top
A commit references this bug: Author: eadler Date: Sat Jun 9 02:47:02 UTC 2018 New revision: 334869 URL: https://svnweb.freebsd.org/changeset/base/334869 Log: top(1): correct header, align it. THR is always 6 digits or longer. Now that the PID/THR change is separated, use correct headers. PR: 228823 Reported by: Trond.Endrestol@ximalas.info Changes: head/usr.bin/top/machine.c