From 1f908547e3bc3a72b6e2fb661ba7dc793be320c1 Mon Sep 17 00:00:00 2001 From: xmrdsc Date: Sun, 21 Apr 2019 18:39:00 +0200 Subject: [PATCH] support user defined max-concurrency --- src/daemon/DaemonManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index a70f551b..89314544 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -76,7 +76,9 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const // --max-concurrency based on threads available. max: 6 int32_t concurrency = qBound(1, QThread::idealThreadCount() / 2, 6); - arguments << "--max-concurrency" << QString::number(concurrency); + if(!flags.contains("--max-concurrency", Qt::CaseSensitive)){ + arguments << "--max-concurrency" << QString::number(concurrency); + } qDebug() << "starting monerod " + m_monerod; qDebug() << "With command line arguments " << arguments;