summaryrefslogtreecommitdiff
path: root/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'idle.c')
-rw-r--r--idle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/idle.c b/idle.c
index 0d13b31..dd1eeee 100644
--- a/idle.c
+++ b/idle.c
@@ -369,9 +369,7 @@ idle_init()
if (!idle)
die("malloc: %m");
- idle->ptask.interval = 60;
- idle->ptask.times = 0;
- idle->ptask.cb = idle_cb;
+ ptask_init(&idle->ptask, 60, 0, idle_cb);
uring_task_init(&idle->task, "idle", uring_parent(), idle_free);
ptimer_add_task(&idle->ptask);
cfg->idle = idle;