[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] backport: load balance over the first megabyte of claimed c...



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