mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
give a bit more load to servers that claim to be able to
handle a whole lot. svn:r3489
This commit is contained in:
parent
1e847aebb1
commit
1447145470
1 changed files with 2 additions and 2 deletions
|
@ -433,8 +433,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 > 800000)
|
||||
this_bw = 800000; /* if they claim something huge, don't believe it */
|
||||
if (this_bw > 1000000)
|
||||
this_bw = 1000000; /* if they claim something huge, don't believe it */
|
||||
p = tor_malloc(sizeof(uint32_t));
|
||||
*p = this_bw;
|
||||
smartlist_add(bandwidths, p);
|
||||
|
|
Loading…
Add table
Reference in a new issue