Added --calibrate-algo-time command line switch support

This commit is contained in:
MoneroOcean 2018-08-04 10:40:03 +02:00
parent 30a4f53c8f
commit 0bc9d775c6
7 changed files with 17 additions and 5 deletions

View file

@ -47,6 +47,7 @@ xmrig::CommonConfig::CommonConfig() :
m_colors(true),
m_dryRun(false),
m_calibrateAlgo(false),
m_calibrateAlgoTime(60),
m_saveConfig(false),
m_syslog(false),
@ -357,6 +358,12 @@ bool xmrig::CommonConfig::parseInt(int key, int arg)
}
break;
case CalibrateAlgoTimeKey: /* --calibrate-algo-time */
if (arg >= 5 && arg <= 3600) {
m_calibrateAlgoTime = arg;
}
break;
default:
break;
}