diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-04-23 15:32:42 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-04-23 15:32:42 -0500 |
| commit | b39f04117752b7635ff32037e6a571173e93a7ad (patch) | |
| tree | 165274cc05bec119c024147ddb32c1fb3a1db987 /src/daemon | |
| parent | 4b324bb71926f496ca1d1451ddb8392387a8c009 (diff) | |
| parent | 1f908547e3bc3a72b6e2fb661ba7dc793be320c1 (diff) | |
| download | monzero-gui-b39f04117752b7635ff32037e6a571173e93a7ad.tar.gz monzero-gui-b39f04117752b7635ff32037e6a571173e93a7ad.tar.xz monzero-gui-b39f04117752b7635ff32037e6a571173e93a7ad.zip | |
Merge pull request #2103
1f90854 support user defined max-concurrency (xmrdsc)
Diffstat (limited to 'src/daemon')
| -rw-r--r-- | src/daemon/DaemonManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
