Commit 45237d17 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Be more aggressive when aging txcost data.

parent 9887f30c
...@@ -195,9 +195,9 @@ check_neighbour(struct neighbour *neigh) ...@@ -195,9 +195,9 @@ check_neighbour(struct neighbour *neigh)
if(!neigh->network->wired) { if(!neigh->network->wired) {
while(neigh->txcost < INFINITY && while(neigh->txcost < INFINITY &&
neigh->txcost_time <= now.tv_sec - 30) { neigh->txcost_time <= now.tv_sec - 40) {
neigh->txcost = MIN((int)neigh->txcost * 5 / 4, INFINITY); neigh->txcost = MIN((int)neigh->txcost * 5 / 4, INFINITY);
neigh->txcost_time += 30; 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