|
|
@ -126,7 +126,7 @@ static int opt_fail_pause = 5; |
|
|
|
static int opt_log_interval = 5; |
|
|
|
static int opt_log_interval = 5; |
|
|
|
bool opt_log_output = false; |
|
|
|
bool opt_log_output = false; |
|
|
|
static bool opt_dynamic = true; |
|
|
|
static bool opt_dynamic = true; |
|
|
|
static int opt_queue = 1; |
|
|
|
static int opt_queue; |
|
|
|
int opt_vectors; |
|
|
|
int opt_vectors; |
|
|
|
int opt_worksize; |
|
|
|
int opt_worksize; |
|
|
|
int opt_scantime = 60; |
|
|
|
int opt_scantime = 60; |
|
|
@ -248,11 +248,6 @@ static char *set_int_0_to_10(const char *arg, int *i) |
|
|
|
return set_int_range(arg, i, 0, 10); |
|
|
|
return set_int_range(arg, i, 0, 10); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static char *set_int_1_to_10(const char *arg, int *i) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return set_int_range(arg, i, 1, 10); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static char *set_devices(const char *arg, int *i) |
|
|
|
static char *set_devices(const char *arg, int *i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
char *err = opt_set_intval(arg, i); |
|
|
|
char *err = opt_set_intval(arg, i); |
|
|
@ -347,8 +342,8 @@ static struct opt_table opt_config_table[] = { |
|
|
|
opt_set_bool, &opt_protocol, |
|
|
|
opt_set_bool, &opt_protocol, |
|
|
|
"Verbose dump of protocol-level activities"), |
|
|
|
"Verbose dump of protocol-level activities"), |
|
|
|
OPT_WITH_ARG("--queue|-Q", |
|
|
|
OPT_WITH_ARG("--queue|-Q", |
|
|
|
set_int_1_to_10, opt_show_intval, &opt_queue, |
|
|
|
set_int_0_to_10, opt_show_intval, &opt_queue, |
|
|
|
"Number of extra work items to queue (1 - 10)"), |
|
|
|
"Number of extra work items to queue (0 - 10)"), |
|
|
|
OPT_WITHOUT_ARG("--quiet|-q", |
|
|
|
OPT_WITHOUT_ARG("--quiet|-q", |
|
|
|
opt_set_bool, &opt_quiet, |
|
|
|
opt_set_bool, &opt_quiet, |
|
|
|
"Disable per-thread hashmeter output"), |
|
|
|
"Disable per-thread hashmeter output"), |
|
|
|