Commit 2f755b73 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use route_timeout_delay in find_best_route.

parent 2aa105a2
......@@ -220,7 +220,7 @@ find_best_route(struct destination *dest)
for(i = 0; i < numroutes; i++) {
if(routes[i].dest != dest)
continue;
if(routes[i].time < now.tv_sec - 180)
if(routes[i].time < now.tv_sec - route_timeout_delay)
continue;
if(!route_feasible(&routes[i]))
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