From fedded8d048045db541bcff2287ab894cb290bd4 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sat, 25 Aug 2018 15:59:51 +0000 Subject: [PATCH] Fix column alignment in per-thread mode. PR: 230872 Approved by: re (marius) MFC after: 1 week --- usr.bin/top/machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 5dafda0a787e..374c9da0edf4 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1067,6 +1067,8 @@ format_next_process(struct handle * xhandle, char *(*get_userid)(int), int flags if (!ps.thread) { sbuf_printf(procbuf, "%4d ", pp->ki_numthreads); + } else { + sbuf_printf(procbuf, " "); } sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PZERO);