]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Time of neighbor's dead was not shown correctly.
authorOndrej Filip <feela@network.cz>
Sun, 20 Feb 2005 03:30:44 +0000 (03:30 +0000)
committerOndrej Filip <feela@network.cz>
Sun, 20 Feb 2005 03:30:44 +0000 (03:30 +0000)
proto/ospf/neighbor.c

index 58c0762b5bd8b362f4fa4b62b8429cbbf9e83b53..59a98057bbfd02c1d541a9b1ae269582761633f2 100644 (file)
@@ -573,8 +573,8 @@ ospf_sh_neigh_info(struct ospf_neighbor *n)
   int exp, sec, min;
 
   exp = n->inactim->expires - now;
-  sec = exp - (exp / 60);
-  min = (exp - sec) / 60;
+  sec = exp % 60;
+  min = exp / 60;
   if (min > 59)
   {
     bsprintf(etime, "-Inf-");