[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport: load balance over the first megabyte of claimed c...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] backport: load balance over the first megabyte of claimed c...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Thu, 3 Feb 2005 18:47:11 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 03 Feb 2005 18:47:31 -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/0091/tor/src/or
Modified Files:
Tag: tor-0_0_9-patches
routerlist.c
Log Message:
backport: load balance over the first megabyte of claimed capacity,
not the first 800kB
Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.200.2.2
retrieving revision 1.200.2.3
diff -u -d -r1.200.2.2 -r1.200.2.3
--- routerlist.c 6 Jan 2005 20:30:09 -0000 1.200.2.2
+++ routerlist.c 3 Feb 2005 23:47:09 -0000 1.200.2.3
@@ -444,8 +444,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);