summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-07 20:36:04 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-07 20:36:04 -0500
commitb780e84f256796870857259c16489e90a75a63c7 (patch)
tree82328bc8c3b51dc32fe3684d77be6e60d9b3acca /src/or/routerlist.c
parentea5ea5f5542b314d3365a09427cf74340b5093e4 (diff)
parent3dc61a5d71423e86d4d8090a90782a1ddf164880 (diff)
downloadtor-b780e84f256796870857259c16489e90a75a63c7.tar.gz
tor-b780e84f256796870857259c16489e90a75a63c7.zip
Merge branch 'maint-0.3.2'
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index f04e2ca160..b59f318fc8 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2706,7 +2706,7 @@ compute_weighted_bandwidths(const smartlist_t *sl,
final_weight = weight*this_bw;
}
- bandwidths[node_sl_idx] = final_weight;
+ bandwidths[node_sl_idx] = final_weight + 0.5;
} SMARTLIST_FOREACH_END(node);
log_debug(LD_CIRC, "Generated weighted bandwidths for rule %s based "