diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-07-12 08:22:32 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-07-12 08:22:32 +0000 |
commit | 9b30d697103e82030d967955940ad998519fa0ed (patch) | |
tree | a7d15cb3c1c919518713024a36505e50dc0f36d3 /usr.bin/top | |
parent | f257b7a54b4fe77840cf694314bdc401e00c31a1 (diff) | |
download | src-9b30d697103e82030d967955940ad998519fa0ed.tar.gz src-9b30d697103e82030d967955940ad998519fa0ed.zip |
Adjust the show_self code (the test got inadvertantly reversed a couple of
revisions ago)
Submitted by: Alex Vasylenko <lxv@omut.org>
Notes
Notes:
svn path=/head/; revision=132024
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 698172731c70..180d67b9b714 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -528,7 +528,7 @@ get_process_info(struct system_info *si, struct process_select *sel, /* set up flags which define what we are going to select */ show_idle = sel->idle; - show_self = sel->self; + show_self = sel->self == -1; show_system = sel->system; show_uid = sel->uid != -1; show_command = sel->command != NULL; @@ -544,8 +544,8 @@ get_process_info(struct system_info *si, struct process_select *sel, for (pp = pbase, i = 0; i < nproc; pp++, i++) { if (pp->ki_stat == 0) - /* not in use */ - continue; + /* not in use */ + continue; if (!show_self && pp->ki_pid == sel->self) /* skip self */ |