Browse Source

Fix bug that lower bound of optimize-concurrent-downloads becomes 1

Tatsuhiro Tsujikawa 8 năm trước cách đây
mục cha
commit
ddc1f1bfda
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/RequestGroupMan.cc

+ 1 - 1
src/RequestGroupMan.cc

@@ -1086,7 +1086,7 @@ int RequestGroupMan::optimizeConcurrentDownloads()
   }
 
   if (optimizationSpeed_ <= 0) {
-    return 1;
+    return optimizeConcurrentDownloadsCoeffA_;
   }
 
   // apply the rule