diff options
Diffstat (limited to 'idle.c')
-rw-r--r-- | idle.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |