aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1998-08-04 14:10:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1998-08-04 14:10:48 +0000
commite7cdb9725304a79df9fa01c6a44b5f26b8d67b97 (patch)
tree0e316f7e358f4e9860629df767328db0e3293256 /usr.bin/top
parent05b73c60a49a109a3eb648d35dc4552a305b4d16 (diff)
Notes
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 7d22e25c425c..8667149a2bbc 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -17,7 +17,7 @@
* Steven Wallace <swallace@freebsd.org>
* Wolfram Schneider <wosch@FreeBSD.org>
*
- * $Id: machine.c,v 1.11 1998/06/21 18:00:34 dt Exp $
+ * $Id: machine.c,v 1.12 1998/07/27 12:21:58 wosch Exp $
*/
@@ -458,6 +458,7 @@ int (*compare)();
/* these are copied out of sel for speed */
int show_idle;
+ int show_self;
int show_system;
int show_uid;
int show_command;
@@ -476,6 +477,7 @@ int (*compare)();
/* set up flags which define what we are going to select */
show_idle = sel->idle;
+ show_self = sel->self;
show_system = sel->system;
show_uid = sel->uid != -1;
show_command = sel->command != NULL;
@@ -494,6 +496,7 @@ int (*compare)();
* processes---these get ignored unless show_sysprocs is set.
*/
if (PP(pp, p_stat) != 0 &&
+ (show_self != PP(pp, p_pid)) &&
(show_system || ((PP(pp, p_flag) & P_SYSTEM) == 0)))
{
total_procs++;