[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] give a bit more load to servers that claim to be able to
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] give a bit more load to servers that claim to be able to
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Mon, 31 Jan 2005 21:56:33 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 31 Jan 2005 21:56:52 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
routerlist.c
Log Message:
give a bit more load to servers that claim to be able to
handle a whole lot.
Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -d -r1.209 -r1.210
--- routerlist.c 29 Jan 2005 11:48:37 -0000 1.209
+++ routerlist.c 1 Feb 2005 02:56:31 -0000 1.210
@@ -433,8 +433,8 @@
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);