diff --git a/sysprof-module.c b/sysprof-module.c index 3ce65928..96cf43c6 100644 --- a/sysprof-module.c +++ b/sysprof-module.c @@ -304,10 +304,10 @@ on_timer(unsigned long dong) { struct task_struct *p; - static const int cpu_profiler = 1; /* set to 0 to profile disk */ + static const int cpu_profiler = 0; /* set to 0 to profile disk */ for_each_process (p) { - if (p->state == cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE) + if (p->state == (cpu_profiler? TASK_RUNNING : TASK_UNINTERRUPTIBLE)) queue_generate_stack_trace (p); }