mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
be willing to load balance over up to 2mB, not 1mB, of advertised capacity
svn:r4080
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user