Author: markj
Date: Sat Aug 25 15:59:51 2018
New Revision: 338315
URL: https://svnweb.freebsd.org/changeset/base/338315

Log:
  Fix column alignment in per-thread mode.
  
  PR:           230872
  Approved by:  re (marius)
  MFC after:    1 week

Modified:
  head/usr.bin/top/machine.c

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c  Sat Aug 25 15:47:52 2018        (r338314)
+++ head/usr.bin/top/machine.c  Sat Aug 25 15:59:51 2018        (r338315)
@@ -1067,6 +1067,8 @@ format_next_process(struct handle * xhandle, char *(*g
 
                if (!ps.thread) {
                        sbuf_printf(procbuf, "%4d ", pp->ki_numthreads);
+               } else {
+                       sbuf_printf(procbuf, " ");
                }
 
                sbuf_printf(procbuf, "%3d ", pp->ki_pri.pri_level - PZERO);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to