[or-cvs] give a bit more load to servers that claim to be able to

Roger Dingledine arma at seul.org
Tue Feb 1 02:56:33 UTC 2005


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



More information about the tor-commits mailing list