DaemonManager: remove max-concurrency upper bound

This commit is contained in:
selsta 2020-05-29 13:58:53 +02:00
parent b15dbbb9b0
commit 1580c3a574
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -114,8 +114,8 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
arguments << "--check-updates" << "disabled";
// --max-concurrency based on threads available. max: 6
int32_t concurrency = qBound(1, QThread::idealThreadCount() / 2, 6);
// --max-concurrency based on threads available.
int32_t concurrency = qMax(1, QThread::idealThreadCount() / 2);
if(!flags.contains("--max-concurrency", Qt::CaseSensitive)){
arguments << "--max-concurrency" << QString::number(concurrency);