From 25931837720d5a496d202b02697d5d7abbf2d03e Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Tue, 31 Jul 2018 10:13:24 +0200 Subject: ipc: use seconds instead of milliseconds by default Change-Id: I5e3ec60bfc89c1a1ee93a05f0cd1339aed78a4d4 --- src/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.c b/src/scheduler.c index 2bc3a11..6ccc883 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -75,7 +75,7 @@ void scheduler_change_config(scheduler_t *scheduler, const config_t *task_config scheduler->items[i].worker = scheduler->worker; scheduler->items[i].task = task_factory_create_task(&task_configs[i]); scheduler->items[i].frequency = task_configs[i].frequency; - scheduler->items[i].timer_id = g_timeout_add(scheduler->items[i].frequency, timer_func, &scheduler->items[i]); + scheduler->items[i].timer_id = g_timeout_add(scheduler->items[i].frequency * 1000, timer_func, &scheduler->items[i]); } } -- cgit v1.2.3