From: Vincent Jardin Date: Wed, 11 Apr 2007 15:12:05 +0000 (+0000) Subject: Fix the display of route timeout in "show ip rip". (Use thread_timer_remain_second) X-Git-Tag: frr-2.0-rc1~2537 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a1fdf9479637642ae3de0ee6ef5c0958d6e687d8;p=mirror%2Ffrr.git Fix the display of route timeout in "show ip rip". (Use thread_timer_remain_second) --- diff --git a/ripd/ChangeLog b/ripd/ChangeLog index b776c551e0..066c527100 100644 --- a/ripd/ChangeLog +++ b/ripd/ChangeLog @@ -1,3 +1,8 @@ +2007-04-11 Emmanuel Vize + + * ripd.c: (rip_vty_out_uptime) Use new thread_timer_remain_second + to display properly the route timeout, displayed by "show ip rip" + 2007-03-21 Andrew J. Schorr * ripd.c: (show_ip_rip_status) Use new thread_timer_remain_second diff --git a/ripd/ripd.c b/ripd/ripd.c index f656073ab3..fb5b17778b 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -3389,14 +3389,14 @@ rip_vty_out_uptime (struct vty *vty, struct rip_info *rinfo) 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);