Exclude the "idle" kernel process when GLIBTOP_EXCLUDE_IDLE.
This commit is contained in:
committed by
Benoît Dejean
parent
a0e97885c1
commit
5c6879baab
@@ -143,6 +143,9 @@ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
|
||||
glibtop_get_proc_state_p (server, &procstate, pid);
|
||||
if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE))
|
||||
if (procstate.state != GLIBTOP_PROCESS_RUNNING) continue;
|
||||
|
||||
if (pinfo[i].ki_ppid == 0 && !strcmp(pinfo[i].ki_comm, "idle"))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (which & GLIBTOP_EXCLUDE_SYSTEM)
|
||||
|
Reference in New Issue
Block a user