summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/neighbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 58c0762..59a9805 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-");