Commit 4c042abf authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in source expiration code.

parent 02a42c83
...@@ -247,6 +247,7 @@ check_neighbours() ...@@ -247,6 +247,7 @@ check_neighbours()
changed = update_neighbour(&neighs[i], -1, 0); changed = update_neighbour(&neighs[i], -1, 0);
if(neighs[i].reach == 0 || if(neighs[i].reach == 0 ||
neighs[i].hello_time.tv_sec > now.tv_sec || /* clock stepped */
timeval_minus_msec(&now, &neighs[i].hello_time) > 300000) { timeval_minus_msec(&now, &neighs[i].hello_time) > 300000) {
flush_neighbour(&neighs[i]); flush_neighbour(&neighs[i]);
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment