MFC: 1.77 Fix logic for skipping of idle processes.
This commit is contained in:
parent
2831d11999
commit
3fd28a9ea7
@ -601,7 +601,8 @@ get_process_info(struct system_info *si, struct process_select *sel,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (displaymode == DISP_CPU && !show_idle &&
|
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 */
|
/* skip idle or non-running processes */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user