summaryrefslogtreecommitdiffstats
path: root/pimd/pim_time.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-09-22 11:22:12 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-11-17 11:17:44 +0100
commit1ee6df336315cfe47a54fa95579812dfb845bc7f (patch)
tree9d188ea6c89736beca10ab12f29af3ad85093f08 /pimd/pim_time.c
parent*: clean up ifp-by-local-address function(s) (diff)
downloadfrr-1ee6df336315cfe47a54fa95579812dfb845bc7f.tar.xz
frr-1ee6df336315cfe47a54fa95579812dfb845bc7f.zip
pimd: actually return msec in timer_remain_msec()
... really old TODO sitting there. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_time.c')
-rw-r--r--pimd/pim_time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pimd/pim_time.c b/pimd/pim_time.c
index c88ee7554..93aaffb6a 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;
}