[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] be willing to load balance over up to 2mB, not 1mB, of adve...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] be willing to load balance over up to 2mB, not 1mB, of adve...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Tue, 12 Apr 2005 18:09:49 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 12 Apr 2005 18:10:06 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv31046
Modified Files:
routerlist.c
Log Message:
be willing to load balance over up to 2mB, not 1mB, of advertised capacity
Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.226
retrieving revision 1.227
diff -u -d -r1.226 -r1.227
--- routerlist.c 6 Apr 2005 06:17:35 -0000 1.226
+++ routerlist.c 12 Apr 2005 22:09:47 -0000 1.227
@@ -451,8 +451,8 @@
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);