mirror of
https://github.com/xmrig/xmrig.git
synced 2025-05-11 15:42:16 +00:00
Implement --variant option.
This commit is contained in:
parent
bf2eb1a685
commit
a06a224c0a
1 changed files with 7 additions and 0 deletions
|
@ -341,6 +341,13 @@ static void parse_arg(int key, char *arg) {
|
|||
opt_donate_level = v;
|
||||
break;
|
||||
|
||||
case 1021: /* --variant */
|
||||
v = atoi(arg);
|
||||
if (v > VARIANT_AUTO && v < VARIANT_MAX) {
|
||||
opt_variant = v;
|
||||
}
|
||||
break;
|
||||
|
||||
case 1006: /* --nicehash */
|
||||
opt_nicehash = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue