summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2018-07-31 10:13:24 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2018-08-02 08:48:47 +0000
commit25931837720d5a496d202b02697d5d7abbf2d03e (patch)
tree2610cb423a16dfed2f0f398d520ba8daee8c19c1
parentaef3ae1746dfc07eb9ca2b228ff6552216da1dd8 (diff)
downloadttsd-worker-task-25931837720d5a496d202b02697d5d7abbf2d03e.tar.gz
ttsd-worker-task-25931837720d5a496d202b02697d5d7abbf2d03e.tar.bz2
ttsd-worker-task-25931837720d5a496d202b02697d5d7abbf2d03e.zip
ipc: use seconds instead of milliseconds by default
Change-Id: I5e3ec60bfc89c1a1ee93a05f0cd1339aed78a4d4
-rw-r--r--src/scheduler.c2
1 files changed, 1 insertions, 1 deletions
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]);
}
}