summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-07 20:35:19 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-07 20:35:19 -0500
commit3dc61a5d71423e86d4d8090a90782a1ddf164880 (patch)
tree519571bea963b288bb0e5d2fa314d0e67caea347 /src
parentc58471325a48f8181d32d45ef75cd23ffd942181 (diff)
downloadtor-3dc61a5d71423e86d4d8090a90782a1ddf164880.tar.gz
tor-3dc61a5d71423e86d4d8090a90782a1ddf164880.zip
Revert "Remove an erroneous 0.5 in compute_weighted_bandwidths()"
This reverts commit 01e984870a7e1db2722e85fe43af7bcb4755c2d4.
Diffstat (limited to 'src')
-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 f0bd343f45..c7c1092539 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 "