1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-18 05:15:54 +01:00

Merge pull request #2927

1580c3a DaemonManager: remove max-concurrency upper bound (selsta)
This commit is contained in:
luigi1111 2020-06-15 15:07:59 -05:00
commit 47559e51be
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

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);