summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-04-12 22:09:47 +0000
committerRoger Dingledine <arma@torproject.org>2005-04-12 22:09:47 +0000
commit769541ff7ed0f81fe7a9bdfa08ce6e962372b799 (patch)
treea64ce0ed641c364567ed294ed675009205f26cdd
parentbf79b5266f2cac9ff6d6b56d5e422e2c54de03b7 (diff)
downloadtor-769541ff7ed0f81fe7a9bdfa08ce6e962372b799.tar.gz
tor-769541ff7ed0f81fe7a9bdfa08ce6e962372b799.zip
be willing to load balance over up to 2mB, not 1mB, of advertised capacity
svn:r4080
-rw-r--r--src/or/routerlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7a1ad02058..7a2546555d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -451,8 +451,8 @@ routerlist_sl_choose_by_bandwidth(smartlist_t *sl)
router = smartlist_get(sl, i);
this_bw = (router->bandwidthcapacity < router->bandwidthrate) ?
router->bandwidthcapacity : router->bandwidthrate;
- if (this_bw > 1000000)
- this_bw = 1000000; /* if they claim something huge, don't believe it */
+ if (this_bw > 2000000)
+ this_bw = 2000000; /* if they claim something huge, don't believe it */
p = tor_malloc(sizeof(uint32_t));
*p = this_bw;
smartlist_add(bandwidths, p);