Correctly init config keys

This commit is contained in:
MoneroOcean 2019-06-18 12:40:38 -07:00
parent f917cea32d
commit 8ffc9f3ff2
2 changed files with 10 additions and 0 deletions

View file

@ -85,6 +85,9 @@ public:
NicehashKey = 1006, NicehashKey = 1006,
PrintTimeKey = 1007, PrintTimeKey = 1007,
CalibrateAlgoKey = 10001,
CalibrateAlgoTimeKey = 10002,
// xmrig cpu // xmrig cpu
AVKey = 'v', AVKey = 'v',
CPUAffinityKey = 1020, CPUAffinityKey = 1020,

View file

@ -85,6 +85,9 @@ static const option options[] = {
{ "daemon", 0, nullptr, IConfig::DaemonKey }, { "daemon", 0, nullptr, IConfig::DaemonKey },
{ "daemon-poll-interval", 1, nullptr, IConfig::DaemonPollKey }, { "daemon-poll-interval", 1, nullptr, IConfig::DaemonPollKey },
{ "calibrate-algo", 0, nullptr, xmrig::IConfig::CalibrateAlgoKey },
{ "calibrate-algo-time", 1, nullptr, xmrig::IConfig::CalibrateAlgoTimeKey },
# ifdef XMRIG_DEPRECATED # ifdef XMRIG_DEPRECATED
{ "api-port", 1, nullptr, IConfig::ApiPort }, { "api-port", 1, nullptr, IConfig::ApiPort },
{ "api-access-token", 1, nullptr, IConfig::ApiAccessTokenKey }, { "api-access-token", 1, nullptr, IConfig::ApiAccessTokenKey },
@ -117,6 +120,10 @@ static struct option const config_options[] = {
{ "threads", 1, nullptr, IConfig::ThreadsKey }, { "threads", 1, nullptr, IConfig::ThreadsKey },
{ "user-agent", 1, nullptr, IConfig::UserAgentKey }, { "user-agent", 1, nullptr, IConfig::UserAgentKey },
{ "asm", 1, nullptr, IConfig::AssemblyKey }, { "asm", 1, nullptr, IConfig::AssemblyKey },
{ "calibrate-algo", 0, nullptr, xmrig::IConfig::CalibrateAlgoKey },
{ "calibrate-algo-time", 1, nullptr, xmrig::IConfig::CalibrateAlgoTimeKey },
{ nullptr, 0, nullptr, 0 } { nullptr, 0, nullptr, 0 }
}; };