Merge pull request #1920

da3eae2 Dynamic monerod --max-concurrency, max 6 (xmrdsc)
This commit is contained in:
luigi1111
2019-02-01 01:09:04 -06:00
3 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#include "DaemonManager.h"
#include <QFile>
#include <QThread>
#include <QFileInfo>
#include <QDir>
#include <QDebug>
@@ -72,7 +73,10 @@ 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);
arguments << "--max-concurrency" << QString::number(concurrency);
qDebug() << "starting monerod " + m_monerod;
qDebug() << "With command line arguments " << arguments;