1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 12:34:27 +00:00

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.

This commit is contained in:
Con Kolivas 2011-07-15 10:42:06 +10:00
parent 8a40036974
commit aeaeac0889
2 changed files with 9 additions and 8 deletions

6
NEWS
View File

@ -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
- Put a current system status line beneath the total work status line

11
main.c
View File

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