mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/daemon/common/commonSwarming2


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/daemon/common/commonSwarming2.ml
Date: Wed, 14 Sep 2005 16:28:27 -0400

Index: mldonkey/src/daemon/common/commonSwarming2.ml
diff -u mldonkey/src/daemon/common/commonSwarming2.ml:1.16 
mldonkey/src/daemon/common/commonSwarming2.ml:1.17
--- mldonkey/src/daemon/common/commonSwarming2.ml:1.16  Fri Sep  2 22:39:59 2005
+++ mldonkey/src/daemon/common/commonSwarming2.ml       Wed Sep 14 20:28:26 2005
@@ -1805,8 +1805,6 @@
 (*                                                                       *)
 (*************************************************************************)
 
-let max_clients_per_block = 3
-
 let permute_and_return up n =
   let b = up.up_complete_blocks.(n) in
   if debug_all then  lprintf "permute_and_return %d <> %d" n b;
@@ -2117,8 +2115,7 @@
 (************* Fall back on linear download if nothing worked *)
 
               in
-              iter_max_uploaders 1;
-              iter_max_uploaders max_clients_per_block;
+              iter_max_uploaders !!sources_per_chunk;
               iter_max_uploaders max_int;
               raise Not_found
             with
@@ -2277,15 +2274,11 @@
         | Some rr -> iter limit rr
       in
       try
-(* first try to find ranges with 0 uploaders *)
-        iter 1 r
-      with Not_found ->
-          try
 (* try normal ranges *)
-            iter max_clients_per_block r
-          with Not_found ->
+        iter !!sources_per_chunk r
+      with Not_found ->
 (* force maximal uploading otherwise to finish it *)
-              iter max_int r
+          iter max_int r
 
 (*************************************************************************)
 (*                                                                       *)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]