summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/task.c')
-rw-r--r--kern/task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/task.c b/kern/task.c
index fc5802e3..57ad9849 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -1224,7 +1224,8 @@ void consider_task_collect(void)
task_collect_max_rate = hz;
if (task_collect_allowed &&
- (sched_tick > (task_collect_last_tick + task_collect_max_rate))) {
+ (sched_tick > (task_collect_last_tick +
+ task_collect_max_rate / (hz / 1)))) {
task_collect_last_tick = sched_tick;
task_collect_scan();
}