mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Time of neighbor's dead was not shown correctly.
This commit is contained in:
@@ -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-");
|
||||
|
Reference in New Issue
Block a user