summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-12-09 00:26:43 +0900
committerGitHub <noreply@github.com>2016-12-09 00:26:43 +0900
commitec02ae65bb4b7e5ffdf75f093fec677ad62d4bbb (patch)
tree05eb6d19c3a56e09970cfe1a04d7d4a4c5f3c835
parent423347447114ed19a707617af622bc91bd242161 (diff)
parentddc1f1bfdab769914377804da05344e11fe3ecb7 (diff)
Merge pull request #798 from aria2/fix-optimize-concurrent-downloads-lower-bound
Fix bug that lower bound of optimize-concurrent-downloads becomes 1
-rw-r--r--src/RequestGroupMan.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RequestGroupMan.cc b/src/RequestGroupMan.cc
index 916fb14e..2296ac66 100644
--- a/src/RequestGroupMan.cc
+++ b/src/RequestGroupMan.cc
@@ -1086,7 +1086,7 @@ int RequestGroupMan::optimizeConcurrentDownloads()
}
if (optimizationSpeed_ <= 0) {
- return 1;
+ return optimizeConcurrentDownloadsCoeffA_;
}
// apply the rule