Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 04:18:23 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335359 - head/usr.bin/top
Message-ID:  <201806190418.w5J4IN4L002838@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Tue Jun 19 04:18:23 2018
New Revision: 335359
URL: https://svnweb.freebsd.org/changeset/base/335359

Log:
  top(1): correct header in UP mode
  
  Fix an oversight from r334869 which made the same change, but only for
  SMP systems. This avoids a segfault while D15801 is being reviewed.
  
  Reviewed by:	kevans

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

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c	Tue Jun 19 03:11:09 2018	(r335358)
+++ head/usr.bin/top/machine.c	Tue Jun 19 04:18:23 2018	(r335359)
@@ -87,7 +87,7 @@ struct handle {
  */
 
 static const char io_header[] =
-    "  PID%*s %-*.*s   VCSW  IVCSW   READ  WRITE  FAULT  TOTAL PERCENT COMMAND";
+    "  %s%*s %-*.*s   VCSW  IVCSW   READ  WRITE  FAULT  TOTAL PERCENT COMMAND";
 
 static const char io_Proc_format[] =
     "%5d%*s %-*.*s %6ld %6ld %6ld %6ld %6ld %6ld %6.2f%% %.*s";
@@ -103,7 +103,7 @@ static const char smp_Proc_format[] =
     "%5d%*s %-*.*s %s%3d %4s%7s %6s%*.*s %-6.6s %2d%7s %6.2f%% %.*s";
 
 static char up_header_thr_and_pid[] =
-    "  PID%*s %-*.*s  THR PRI NICE   SIZE    RES%*s STATE    TIME %7s COMMAND";
+    "  %s%*s %-*.*s  THR PRI NICE   SIZE    RES%*s STATE    TIME %7s COMMAND";
 static char up_header_id_only[] =
     "  %s%*s %-*.*s   PRI NICE   SIZE    RES%*s STATE    TIME %7s COMMAND";
 static char up_Proc_format[] =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806190418.w5J4IN4L002838>