diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2018-06-09 02:14:33 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2018-06-09 02:14:33 +0000 |
commit | fc36f5a7cb9681f24967c3f46dd53b449ec05263 (patch) | |
tree | f41d1a09e706d4eb2c697e7daa4899395f9f0c4c /usr.bin/top/machine.c | |
parent | 0001edb82347e724060de057efb3394885b6560f (diff) | |
download | src-fc36f5a7cb9681f24967c3f46dd53b449ec05263.tar.gz src-fc36f5a7cb9681f24967c3f46dd53b449ec05263.zip |
Notes
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 92ad9e2110b9..6374825869b1 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -433,8 +433,8 @@ format_header(const char *uname_field) * separate lines). */ prehead = smpmode ? - (ps.thread ? smp_header_tid_only : smp_header_thr_and_pid) : - (ps.thread ? up_header_tid_only : up_header_thr_and_pid); + (ps.thread_id ? smp_header_tid_only : smp_header_thr_and_pid) : + (ps.thread_id ? up_header_tid_only : up_header_thr_and_pid); snprintf(Header, sizeof(Header), prehead, jidlength, ps.jail ? " JID" : "", namelength, namelength, uname_field, @@ -828,7 +828,7 @@ get_process_info(struct system_info *si, struct process_select *sel, /* not in use */ continue; - if (sel->self != -1 && pp->ki_pid == sel->self) + if (!sel->self && pp->ki_pid == mypid) /* skip self */ continue; |