From 6eb4b73fe829cf5da56d8990c33e5c7edaa19d77 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 20 Feb 2005 03:30:44 +0000 Subject: Time of neighbor's dead was not shown correctly. --- proto/ospf/neighbor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 58c0762b..59a98057 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -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-"); -- cgit v1.2.3