mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Time of neighbor's dead was not shown correctly.
This commit is contained in:
parent
5506c82ce6
commit
6eb4b73fe8
@ -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 New Issue
Block a user