MFC: 1.77 Fix logic for skipping of idle processes.

This commit is contained in:
se 2006-09-01 18:12:10 +00:00
parent 2831d11999
commit 3fd28a9ea7

View File

@ -601,7 +601,8 @@ get_process_info(struct system_info *si, struct process_select *sel,
continue;
if (displaymode == DISP_CPU && !show_idle &&
(pp->ki_pctcpu == 0 || pp->ki_stat != SRUN))
(pp->ki_pctcpu == 0 ||
pp->ki_stat == SSTOP || pp->ki_stat == SIDL))
/* skip idle or non-running processes */
continue;