mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
support user defined max-concurrency
This commit is contained in:
parent
d2c47606ca
commit
1f908547e3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue