]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
give a bit more load to servers that claim to be able to
authorRoger Dingledine <arma@torproject.org>
Tue, 1 Feb 2005 02:56:31 +0000 (02:56 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 1 Feb 2005 02:56:31 +0000 (02:56 +0000)
handle a whole lot.

svn:r3489

src/or/routerlist.c

index d319e7d54214e3d4e9e20a3cc6d9d799e898d45f..10c43006e399ba51f0932973a62df28085ebf6fe 100644 (file)
@@ -433,8 +433,8 @@ routerlist_sl_choose_by_bandwidth(smartlist_t *sl)
     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);