Ver Fonte

Merge pull request #798 from aria2/fix-optimize-concurrent-downloads-lower-bound

Fix bug that lower bound of optimize-concurrent-downloads becomes 1
Tatsuhiro Tsujikawa há 8 anos atrás
pai
commit
ec02ae65bb
1 ficheiros alterados com 1 adições e 1 exclusões
  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