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