mirror of https://github.com/aria2/aria2
Remove trailing white spaces
parent
9e05371fb6
commit
60d0cb0e24
|
@ -70,7 +70,7 @@ int NetStat::calculateUploadSpeed() { return uploadSpeed_.calculateSpeed(); }
|
||||||
|
|
||||||
int NetStat::calculateNewestUploadSpeed(int seconds)
|
int NetStat::calculateNewestUploadSpeed(int seconds)
|
||||||
{
|
{
|
||||||
return uploadSpeed_.calculateNewestSpeed(seconds);
|
return uploadSpeed_.calculateNewestSpeed(seconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
int NetStat::calculateAvgUploadSpeed()
|
int NetStat::calculateAvgUploadSpeed()
|
||||||
|
|
|
@ -136,7 +136,7 @@ bool RequestGroupMan::setupOptimizeConcurrentDownloads(void)
|
||||||
{
|
{
|
||||||
optimizeConcurrentDownloads_ = option_->getAsBool(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS);
|
optimizeConcurrentDownloads_ = option_->getAsBool(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS);
|
||||||
if (optimizeConcurrentDownloads_) {
|
if (optimizeConcurrentDownloads_) {
|
||||||
if (option_->defined(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFA)) {
|
if (option_->defined(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFA)) {
|
||||||
optimizeConcurrentDownloadsCoeffA_ = std::stod(option_->get(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFA));
|
optimizeConcurrentDownloadsCoeffA_ = std::stod(option_->get(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFA));
|
||||||
optimizeConcurrentDownloadsCoeffB_ = std::stod(option_->get(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFB));
|
optimizeConcurrentDownloadsCoeffB_ = std::stod(option_->get(PREF_OPTIMIZE_CONCURRENT_DOWNLOADS_COEFFB));
|
||||||
}
|
}
|
||||||
|
@ -1062,13 +1062,13 @@ int RequestGroupMan::optimizeConcurrentDownloads()
|
||||||
|
|
||||||
// bring the value in bound between 1 and the defined maximum
|
// bring the value in bound between 1 and the defined maximum
|
||||||
maxConcurrentDownloads = std::min(std::max(1, maxConcurrentDownloads), maxConcurrentDownloads_);
|
maxConcurrentDownloads = std::min(std::max(1, maxConcurrentDownloads), maxConcurrentDownloads_);
|
||||||
|
|
||||||
A2_LOG_DEBUG
|
A2_LOG_DEBUG
|
||||||
(fmt("Max concurrent downloads optimized at %d (%lu currently active) "
|
(fmt("Max concurrent downloads optimized at %d (%lu currently active) "
|
||||||
"[optimization speed %sB/s, current speed %sB/s]",
|
"[optimization speed %sB/s, current speed %sB/s]",
|
||||||
maxConcurrentDownloads, numActive_, util::abbrevSize(optimizationSpeed_).c_str(),
|
maxConcurrentDownloads, numActive_, util::abbrevSize(optimizationSpeed_).c_str(),
|
||||||
util::abbrevSize(currentSpeed).c_str()));
|
util::abbrevSize(currentSpeed).c_str()));
|
||||||
|
|
||||||
return maxConcurrentDownloads;
|
return maxConcurrentDownloads;
|
||||||
}
|
}
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
Loading…
Reference in New Issue