diff options
author | Ondrej Filip <feela@network.cz> | 2005-02-20 04:30:44 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2005-02-20 04:30:44 +0100 |
commit | 6eb4b73fe829cf5da56d8990c33e5c7edaa19d77 (patch) | |
tree | ba87c35798a08a25a3563c16e1421bc2f76adb61 /proto/ospf | |
parent | 5506c82ce6123f70220f2d84ff21269bb832bfac (diff) | |
download | bird-6eb4b73fe829cf5da56d8990c33e5c7edaa19d77.tar bird-6eb4b73fe829cf5da56d8990c33e5c7edaa19d77.zip |
Time of neighbor's dead was not shown correctly.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/neighbor.c | 4 |
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-"); |