aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2011-07-14 19:09:48 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2011-07-14 19:09:48 +0000
commit9b1b4e462816f981714cc030cdfdbb11fe79fee5 (patch)
tree60a0d360a8fd40d847c16a3469fefe7047f1b412
parent83d3cc81e850654dd6c26b481b207341407c0d48 (diff)
Notes
-rw-r--r--usr.bin/top/machine.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 4c5568249d40..4083ba0dea08 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -701,17 +701,16 @@ get_process_info(struct system_info *si, struct process_select *sel,
/* skip zombies */
continue;
+ if (!show_kidle && pp->ki_tdflags & TDF_IDLETD)
+ /* skip kernel idle process */
+ continue;
+
if (displaymode == DISP_CPU && !show_idle &&
(pp->ki_pctcpu == 0 ||
pp->ki_stat == SSTOP || pp->ki_stat == SIDL))
/* skip idle or non-running processes */
continue;
- if (displaymode == DISP_CPU && !show_kidle &&
- pp->ki_tdflags & TDF_IDLETD)
- /* skip kernel idle process */
- continue;
-
if (displaymode == DISP_IO && !show_idle && p_io == 0)
/* skip processes that aren't doing I/O */
continue;