Time of neighbor's dead was not shown correctly.
This commit is contained in:
parent
5506c82ce6
commit
6eb4b73fe8
1 changed files with 2 additions and 2 deletions
|
@ -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-");
|
||||
|
|
Loading…
Reference in a new issue