Commit 8a8d739c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Age neighbours more aggressively.

parent 3f392904
......@@ -196,7 +196,7 @@ check_neighbour(struct neighbour *neigh)
if(!neigh->network->wired) {
while(neigh->txcost < INFINITY &&
neigh->txcost_time <= now.tv_sec - 40) {
neigh->txcost = MIN((int)neigh->txcost * 5 / 4, INFINITY);
neigh->txcost = MIN((int)neigh->txcost * 3 / 2, INFINITY);
neigh->txcost_time += 10;
}
}
......
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