From 1ee6df336315cfe47a54fa95579812dfb845bc7f Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 22 Sep 2021 11:22:12 +0200 Subject: [PATCH] pimd: actually return msec in timer_remain_msec() ... really old TODO sitting there. Signed-off-by: David Lamparter --- pimd/pim_time.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pimd/pim_time.c b/pimd/pim_time.c index c88ee7554b..93aaffb6a4 100644 --- a/pimd/pim_time.c +++ b/pimd/pim_time.c @@ -171,9 +171,7 @@ void pim_time_uptime_begin(char *buf, int buf_size, int64_t now, int64_t begin) long pim_time_timer_remain_msec(struct thread *t_timer) { - /* FIXME: Actually fetch msec resolution from thread */ - /* no timer thread running means timer has expired: return 0 */ - return t_timer ? 1000 * thread_timer_remain_second(t_timer) : 0; + return t_timer ? thread_timer_remain_msec(t_timer) : 0; }