Added --calibrate-algo-time command line switch support
This commit is contained in:
parent
30a4f53c8f
commit
0bc9d775c6
7 changed files with 17 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
inline bool isColors() const { return m_colors; }
|
||||
inline bool isDryRun() const { return m_dryRun; }
|
||||
inline bool isCalibrateAlgo() const { return m_calibrateAlgo; }
|
||||
inline int calibrateAlgoTime() const { return m_calibrateAlgoTime; }
|
||||
inline bool isSaveConfig() const { return m_saveConfig; }
|
||||
inline bool isSyslog() const { return m_syslog; }
|
||||
inline const char *apiToken() const { return m_apiToken.data(); }
|
||||
|
@ -91,6 +92,7 @@ protected:
|
|||
bool m_colors;
|
||||
bool m_dryRun;
|
||||
bool m_calibrateAlgo;
|
||||
int m_calibrateAlgoTime;
|
||||
bool m_saveConfig;
|
||||
bool m_syslog;
|
||||
bool m_watch;
|
||||
|
|
|
@ -69,7 +69,8 @@ public:
|
|||
NicehashKey = 1006,
|
||||
PrintTimeKey = 1007,
|
||||
CalibrateAlgoKey = 10001,
|
||||
SaveConfigKey = 10002,
|
||||
CalibrateAlgoTimeKey = 10002,
|
||||
SaveConfigKey = 10003,
|
||||
|
||||
// xmrig cpu
|
||||
AVKey = 'v',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue