0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Time of neighbor's dead was not shown correctly.

This commit is contained in:
Ondrej Filip 2005-02-20 03:30:44 +00:00
parent 5506c82ce6
commit 6eb4b73fe8

View File

@ -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-");