Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2018 06:33:49 +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: r334918 - head/usr.bin/top
Message-ID:  <201806100633.w5A6XnvD010887@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Jun 10 06:33:49 2018
New Revision: 334918
URL: https://svnweb.freebsd.org/changeset/base/334918

Log:
  top(1): use correct word when displaying threads
  
  PR:		182204
  Reported by:	"Brodey Dover" <doverosx@gmail.com>

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

Modified: head/usr.bin/top/display.c
==============================================================================
--- head/usr.bin/top/display.c	Sun Jun 10 06:21:51 2018	(r334917)
+++ head/usr.bin/top/display.c	Sun Jun 10 06:33:49 2018	(r334918)
@@ -349,7 +349,7 @@ i_procstates(int total, int *brkdn)
     int i;
 
     /* write current number of processes and remember the value */
-    printf("%d processes:", total);
+    printf("%d %s:", total, (ps.thread) ? "threads" :"processes");
     ltotal = total;
 
     /* put out enough spaces to get to column 15 */



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