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;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user