summaryrefslogtreecommitdiffstats
path: root/usr.bin/top
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-07-05 12:22:50 +0000
committerdes <des@FreeBSD.org>2004-07-05 12:22:50 +0000
commitf8b24b7f7ae724997653aaafd8a372d10a8376b2 (patch)
tree6f8b803f8813b02231bbe4cf35cb4c2914b9b9fe /usr.bin/top
parentca58cbd33909a2fad10f9f56cf5423b0314d3492 (diff)
downloadFreeBSD-src-f8b24b7f7ae724997653aaafd8a372d10a8376b2.zip
FreeBSD-src-f8b24b7f7ae724997653aaafd8a372d10a8376b2.tar.gz
Fix selecting processes by uid, which was broken in the previous commit.
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index c75506e..6734452 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -563,7 +563,7 @@ get_process_info(si, sel, compare)
process_states[(unsigned char) pp->ki_stat]++;
if ((pp->ki_stat != SZOMB) &&
(displaymode == DISP_CPU &&
- (show_idle || (pp->ki_pctcpu != 0) || pp->ki_stat == SRUN)) ||
+ (show_idle || (pp->ki_pctcpu != 0) || pp->ki_stat == SRUN)) &&
(show_idle || (displaymode == DISP_IO && p_io != 0)) &&
(!show_uid || pp->ki_ruid == (uid_t)sel->uid))
{
OpenPOWER on IntegriCloud