mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-03 09:42:17 +00:00
Display current pool management strategy to enable changing it on the fly.
This commit is contained in:
parent
b534ad0aad
commit
44bcc32234
12
main.c
12
main.c
@ -106,6 +106,15 @@ enum pool_strategy {
|
|||||||
POOL_LOADBALANCE,
|
POOL_LOADBALANCE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct strategies {
|
||||||
|
const char *s;
|
||||||
|
} strategies[] = {
|
||||||
|
{ "Failover" },
|
||||||
|
{ "Round Robin" },
|
||||||
|
{ "Rotate" },
|
||||||
|
{ "Load Balance" },
|
||||||
|
};
|
||||||
|
|
||||||
static const char *algo_names[] = {
|
static const char *algo_names[] = {
|
||||||
[ALGO_C] = "c",
|
[ALGO_C] = "c",
|
||||||
#ifdef WANT_SSE2_4WAY
|
#ifdef WANT_SSE2_4WAY
|
||||||
@ -1412,7 +1421,8 @@ updated:
|
|||||||
wattroff(logwin, A_BOLD | A_DIM);
|
wattroff(logwin, A_BOLD | A_DIM);
|
||||||
}
|
}
|
||||||
retry:
|
retry:
|
||||||
wprintw(logwin, "\n[A]dd pool [S]witch pool [D]isable pool [E]nable pool\n");
|
wprintw(logwin, "\nCurrent pool management strategy: %s\n", strategies[pool_strategy]);
|
||||||
|
wprintw(logwin, "[A]dd pool [S]witch pool [D]isable pool [E]nable pool\n");
|
||||||
wprintw(logwin, "Or press any other key to continue\n");
|
wprintw(logwin, "Or press any other key to continue\n");
|
||||||
wrefresh(logwin);
|
wrefresh(logwin);
|
||||||
pthread_mutex_unlock(&curses_lock);
|
pthread_mutex_unlock(&curses_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user