[or-cvs] be willing to load balance over up to 2mB, not 1mB, of adve...

Roger Dingledine arma at seul.org
Tue Apr 12 22:09:49 UTC 2005


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);



More information about the tor-commits mailing list