]> git.puffer.fish Git - mirror/frr.git/commitdiff
Fix the display of route timeout in "show ip rip". (Use thread_timer_remain_second)
authorVincent Jardin <vincent.jardin@6wind.com>
Wed, 11 Apr 2007 15:12:05 +0000 (15:12 +0000)
committerVincent Jardin <vincent.jardin@6wind.com>
Wed, 11 Apr 2007 15:12:05 +0000 (15:12 +0000)
ripd/ChangeLog
ripd/ripd.c

index b776c551e00e64265427a4ac558b09b33badffc6..066c527100b1449eba0930fe24816f9404b95374 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-11 Emmanuel Vize <emmanuel.vize@6wind.com>
+
+       * 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 <ajschorr@alumni.princeton.edu>
 
        * ripd.c: (show_ip_rip_status) Use new thread_timer_remain_second
index f656073ab31ac62070a5b0184eb92ef3a336a732..fb5b17778b0b25afa8b336a9d2a1b9be8ad42270 100644 (file)
@@ -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);