Initial test nicehash support.

This commit is contained in:
XMRig 2017-05-20 07:08:41 +03:00
parent e67a95bd8b
commit 2baccab0f9
4 changed files with 26 additions and 5 deletions

View file

@ -48,6 +48,7 @@ bool opt_keepalive = false;
bool opt_background = false;
bool opt_double_hash = false;
bool opt_safe = false;
bool opt_nicehash = false;
char *opt_url = NULL;
char *opt_backup_url = NULL;
char *opt_userpass = NULL;
@ -97,6 +98,7 @@ static struct option const options[] = {
{ "help", 0, NULL, 'h' },
{ "keepalive", 0, NULL ,'k' },
{ "max-cpu-usage", 1, NULL, 1004 },
{ "nicehash", 0, NULL, 1006 },
{ "no-color", 0, NULL, 1002 },
{ "pass", 1, NULL, 'p' },
{ "retries", 1, NULL, 'r' },
@ -331,6 +333,10 @@ static void parse_arg(int key, char *arg) {
opt_donate_level = v;
break;
case 1006: /* --nicehash */
opt_nicehash = true;
break;
default:
show_usage_and_exit(1);
}