Fix command line option --donate-level.

This commit is contained in:
XMRig 2018-04-04 00:10:53 +07:00
parent 6a1c52b904
commit c227e3c7b4

View file

@ -233,6 +233,7 @@ bool xmrig::CommonConfig::parseString(int key, const char *arg)
case VariantKey: /* --variant */ case VariantKey: /* --variant */
case ApiPort: /* --api-port */ case ApiPort: /* --api-port */
case PrintTimeKey: /* --cpu-priority */ case PrintTimeKey: /* --cpu-priority */
case DonateLevelKey: /* --donate-level */
return parseUint64(key, strtol(arg, nullptr, 10)); return parseUint64(key, strtol(arg, nullptr, 10));
case BackgroundKey: /* --background */ case BackgroundKey: /* --background */
@ -248,7 +249,7 @@ bool xmrig::CommonConfig::parseString(int key, const char *arg)
return parseBoolean(key, false); return parseBoolean(key, false);
# ifdef XMRIG_PROXY_PROJECT # ifdef XMRIG_PROXY_PROJECT
case 1003: /* --donate-level */ case DonateLevelKey: /* --donate-level */
if (strncmp(arg, "minemonero.pro", 14) == 0) { if (strncmp(arg, "minemonero.pro", 14) == 0) {
m_donateLevel = 0; m_donateLevel = 0;
} }