Fix the display of route timeout in "show ip rip". (Use thread_timer_remain_second)
diff --git a/ripd/ripd.c b/ripd/ripd.c
index f656073..fb5b177 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -3389,14 +3389,14 @@
if ((thread = rinfo->t_timeout) != NULL)
{
- clock = thread->u.sands.tv_sec - timer_now.tv_sec;
+ clock = thread_timer_remain_second (thread);
tm = gmtime (&clock);
strftime (timebuf, TIME_BUF, "%M:%S", tm);
vty_out (vty, "%5s", timebuf);
}
else if ((thread = rinfo->t_garbage_collect) != NULL)
{
- clock = thread->u.sands.tv_sec - timer_now.tv_sec;
+ clock = thread_timer_remain_second (thread);
tm = gmtime (&clock);
strftime (timebuf, TIME_BUF, "%M:%S", tm);
vty_out (vty, "%5s", timebuf);