|
|
@ -92,7 +92,6 @@ bool opt_quiet; |
|
|
|
static bool opt_realquiet; |
|
|
|
static bool opt_realquiet; |
|
|
|
bool opt_loginput; |
|
|
|
bool opt_loginput; |
|
|
|
const int opt_cutofftemp = 95; |
|
|
|
const int opt_cutofftemp = 95; |
|
|
|
static int opt_fail_pause = 5; |
|
|
|
|
|
|
|
int opt_log_interval = 5; |
|
|
|
int opt_log_interval = 5; |
|
|
|
static int opt_queue = 1; |
|
|
|
static int opt_queue = 1; |
|
|
|
int opt_scantime = 60; |
|
|
|
int opt_scantime = 60; |
|
|
@ -961,8 +960,8 @@ static struct opt_table opt_config_table[] = { |
|
|
|
set_null, NULL, NULL, |
|
|
|
set_null, NULL, NULL, |
|
|
|
opt_hidden), |
|
|
|
opt_hidden), |
|
|
|
OPT_WITH_ARG("--retry-pause|-R", |
|
|
|
OPT_WITH_ARG("--retry-pause|-R", |
|
|
|
set_int_0_to_9999, opt_show_intval, &opt_fail_pause, |
|
|
|
set_null, NULL, NULL, |
|
|
|
"Number of seconds to pause, between retries"), |
|
|
|
opt_hidden), |
|
|
|
OPT_WITH_ARG("--rotate", |
|
|
|
OPT_WITH_ARG("--rotate", |
|
|
|
set_rotate, opt_show_intval, &opt_rotate_period, |
|
|
|
set_rotate, opt_show_intval, &opt_rotate_period, |
|
|
|
"Change multipool strategy from failover to regularly rotate at N minutes"), |
|
|
|
"Change multipool strategy from failover to regularly rotate at N minutes"), |
|
|
@ -3493,8 +3492,8 @@ static void set_options(void) |
|
|
|
clear_logwin(); |
|
|
|
clear_logwin(); |
|
|
|
retry: |
|
|
|
retry: |
|
|
|
wlogprint("[Q]ueue: %d\n[S]cantime: %d\n[E]xpiry: %d\n" |
|
|
|
wlogprint("[Q]ueue: %d\n[S]cantime: %d\n[E]xpiry: %d\n" |
|
|
|
"[P]ause: %d\n[W]rite config file\n[C]gminer restart\n", |
|
|
|
"[W]rite config file\n[C]gminer restart\n", |
|
|
|
opt_queue, opt_scantime, opt_expiry, opt_fail_pause); |
|
|
|
opt_queue, opt_scantime, opt_expiry); |
|
|
|
wlogprint("Select an option or any other key to return\n"); |
|
|
|
wlogprint("Select an option or any other key to return\n"); |
|
|
|
input = getch(); |
|
|
|
input = getch(); |
|
|
|
|
|
|
|
|
|
|
@ -3522,14 +3521,6 @@ retry: |
|
|
|
} |
|
|
|
} |
|
|
|
opt_expiry = selected; |
|
|
|
opt_expiry = selected; |
|
|
|
goto retry; |
|
|
|
goto retry; |
|
|
|
} else if (!strncasecmp(&input, "p", 1)) { |
|
|
|
|
|
|
|
selected = curses_int("Seconds to pause before network retries"); |
|
|
|
|
|
|
|
if (selected < 1 || selected > 9999) { |
|
|
|
|
|
|
|
wlogprint("Invalid selection\n"); |
|
|
|
|
|
|
|
goto retry; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
opt_fail_pause = selected; |
|
|
|
|
|
|
|
goto retry; |
|
|
|
|
|
|
|
} else if (!strncasecmp(&input, "w", 1)) { |
|
|
|
} else if (!strncasecmp(&input, "w", 1)) { |
|
|
|
FILE *fcfg; |
|
|
|
FILE *fcfg; |
|
|
|
char *str, filename[PATH_MAX], prompt[PATH_MAX + 50]; |
|
|
|
char *str, filename[PATH_MAX], prompt[PATH_MAX + 50]; |
|
|
|