mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-23 02:52:58 +01:00
Merge pull request #2103
1f90854
support user defined max-concurrency (xmrdsc)
This commit is contained in:
commit
b39f041177
@ -76,7 +76,9 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
|
|||||||
// --max-concurrency based on threads available. max: 6
|
// --max-concurrency based on threads available. max: 6
|
||||||
int32_t concurrency = qBound(1, QThread::idealThreadCount() / 2, 6);
|
int32_t concurrency = qBound(1, QThread::idealThreadCount() / 2, 6);
|
||||||
|
|
||||||
|
if(!flags.contains("--max-concurrency", Qt::CaseSensitive)){
|
||||||
arguments << "--max-concurrency" << QString::number(concurrency);
|
arguments << "--max-concurrency" << QString::number(concurrency);
|
||||||
|
}
|
||||||
|
|
||||||
qDebug() << "starting monerod " + m_monerod;
|
qDebug() << "starting monerod " + m_monerod;
|
||||||
qDebug() << "With command line arguments " << arguments;
|
qDebug() << "With command line arguments " << arguments;
|
||||||
|
Loading…
Reference in New Issue
Block a user