GitLab maintenance scheduled for Today, 2019-12-05, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit b1dd40b6 authored by Misbah Mubarak's avatar Misbah Mubarak

fix for adaptive threshold to check minimal port count

parent 62383d91
......@@ -2522,7 +2522,7 @@ static void do_local_adaptive_routing(router_state * s,
msg->path_type = MINIMAL;
// if(nonmin_port_count * num_intra_nonmin_hops > min_port_count * num_intra_min_hops)
if(nonmin_port_count > adaptive_threshold && min_port_count > nonmin_port_count)
if(min_port_count > adaptive_threshold && min_port_count > nonmin_port_count)
{
msg->path_type = NON_MINIMAL;
}
......@@ -2725,7 +2725,7 @@ static int do_global_adaptive_routing( router_state * s,
next_nonmin_count = next_nonmin_count * 2;
}
/* Now compare the least congested minimal and non-minimal routes */
if(next_nonmin_count > adaptive_threshold && next_min_count > next_nonmin_count)
if(next_min_count > adaptive_threshold && next_min_count > next_nonmin_count)
{
next_chan = next_nonmin_stop;
msg->path_type = NON_MINIMAL;
......
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