Skip to content

Commit f458c00

Browse files
committed
pimd: actually return msec in timer_remain_msec()
... really old TODO sitting there. Signed-off-by: David Lamparter <[email protected]>
1 parent 456909c commit f458c00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pimd/pim_time.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ void pim_time_uptime_begin(char *buf, int buf_size, int64_t now, int64_t begin)
171171

172172
long pim_time_timer_remain_msec(struct thread *t_timer)
173173
{
174-
/* FIXME: Actually fetch msec resolution from thread */
175-
176174
/* no timer thread running means timer has expired: return 0 */
177175

178-
return t_timer ? 1000 * thread_timer_remain_second(t_timer) : 0;
176+
return t_timer ? thread_timer_remain_msec(t_timer) : 0;
179177
}

0 commit comments

Comments
 (0)