aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-06-09 02:18:15 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-06-09 02:18:15 +0000
commit4e08f2f53c12a3acad728a208a2e08f8057bc5e0 (patch)
tree9cb5c45af31a106350bc93b29f3614092a10b6d0
parent6159b91c1fe1a0d60d717806ea2106647eff5e6f (diff)
downloadsrc-4e08f2f53c12a3acad728a208a2e08f8057bc5e0.tar.gz
src-4e08f2f53c12a3acad728a208a2e08f8057bc5e0.zip
top(1): actually make change for tid vs pid
Notes
Notes: svn path=/head/; revision=334866
-rw-r--r--usr.bin/top/machine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 6374825869b1..599ade07d240 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -98,7 +98,6 @@ static const char smp_header_thr_and_pid[] =
" PID%*s %-*.*s THR PRI NICE SIZE RES%*s STATE C TIME %7s COMMAND";
static const char smp_header_tid_only[] =
" THR%*s %-*.*s " "PRI NICE SIZE RES%*s STATE C TIME %7s COMMAND";
-
static const char smp_Proc_format[] =
"%5d%*s %-*.*s %s%3d %4s%7s %6s%*.*s %-6.6s %2d%7s %6.2f%% %.*s";
@@ -106,7 +105,6 @@ static char up_header_thr_and_pid[] =
" PID%*s %-*.*s THR PRI NICE SIZE RES%*s STATE TIME %7s COMMAND";
static char up_header_tid_only[] =
" THR%*s %-*.*s " "PRI NICE SIZE RES%*s STATE TIME %7s COMMAND";
-
static char up_Proc_format[] =
"%5d%*s %-*.*s %s%3d %4s%7s %6s%*.*s %-6.6s%.0d%7s %6.2f%% %.*s";
@@ -1131,7 +1129,7 @@ format_next_process(void* xhandle, char *(*get_userid)(int), int flags)
(int)(sizeof(thr_buf) - 2), pp->ki_numthreads);
snprintf(fmt, sizeof(fmt), proc_fmt,
- (ps.thread) ? pp->ki_tid : pp->ki_pid,
+ (ps.thread_id) ? pp->ki_tid : pp->ki_pid,
jidlength, jid_buf,
namelength, namelength, (*get_userid)(pp->ki_ruid),
thr_buf,