Browse Source

Allow queue of zero again and make it default since we can track queued vs staged now and see if the queue needs to be bigger.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
aeaeac0889
  1. 6
      NEWS
  2. 11
      main.c

6
NEWS

@ -1,3 +1,9 @@
- Allow queue of zero and make that default again now that we can track how
work is being queued versus staged. This can decrease reject rates.
- Queue precisely the number of mining threads as longpoll_staged after a
new block to not generate local work.
Version 1.2.6 - July 15, 2011 Version 1.2.6 - July 15, 2011
- Put a current system status line beneath the total work status line - Put a current system status line beneath the total work status line

11
main.c

@ -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"),

Loading…
Cancel
Save