Commit 9767a7d2 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix another typo in computation of advertised metrics.

parent f9ded55a
......@@ -975,7 +975,7 @@ flushupdates(struct network *net)
if(!route_interferes(route, net)) {
metric =
(int)route->refmetric +
(diversity_factor * route->cost / 128) / 256 +
(diversity_factor * route->cost + 128) / 256 +
route->add_metric;
metric = MAX(metric, route->refmetric + 1);
}
......
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