diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-09-22 11:22:12 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 11:17:44 +0100 | 
| commit | 1ee6df336315cfe47a54fa95579812dfb845bc7f (patch) | |
| tree | 9d188ea6c89736beca10ab12f29af3ad85093f08 | |
| parent | 1e9044be8d4325fa82f01d72eb6c8581dcd6fd06 (diff) | |
pimd: actually return msec in timer_remain_msec()
... really old TODO sitting there.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | pimd/pim_time.c | 4 | 
1 files changed, 1 insertions, 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;  }  | 
