mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
ui: <incognito> pool name in incognito mode, too.
Ah, what the heck. If it's a pool-related, we'll just ask.
This commit is contained in:
parent
2bab1d7b8a
commit
888fab437f
10
sgminer.c
10
sgminer.c
@ -2176,7 +2176,7 @@ static void curses_print_status(void)
|
|||||||
have_longpoll ? "with": "without");
|
have_longpoll ? "with": "without");
|
||||||
} else {
|
} else {
|
||||||
cg_mvwprintw(statuswin, ++line, 0, "Connected to %s (%s) diff %s as user %s",
|
cg_mvwprintw(statuswin, ++line, 0, "Connected to %s (%s) diff %s as user %s",
|
||||||
pool->poolname,
|
opt_incognito ? "<incognito>" : pool->poolname,
|
||||||
pool->has_stratum ? "stratum" : (pool->has_gbt ? "GBT" : "longpoll"),
|
pool->has_stratum ? "stratum" : (pool->has_gbt ? "GBT" : "longpoll"),
|
||||||
pool->diff,
|
pool->diff,
|
||||||
opt_incognito ? "<incognito>" : pool->rpc_user);
|
opt_incognito ? "<incognito>" : pool->rpc_user);
|
||||||
@ -4499,7 +4499,6 @@ static void display_pools(void)
|
|||||||
struct pool *pool;
|
struct pool *pool;
|
||||||
int selected, i;
|
int selected, i;
|
||||||
char input;
|
char input;
|
||||||
char *disp_name;
|
|
||||||
|
|
||||||
opt_loginput = true;
|
opt_loginput = true;
|
||||||
immedok(logwin, true);
|
immedok(logwin, true);
|
||||||
@ -4529,16 +4528,11 @@ updated:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
disp_name = pool->poolname;
|
|
||||||
if (strlen(disp_name) < 1)
|
|
||||||
{
|
|
||||||
disp_name = pool->rpc_url;
|
|
||||||
}
|
|
||||||
wlogprint("%s Quota %d Prio %d '%s' User:%s\n",
|
wlogprint("%s Quota %d Prio %d '%s' User:%s\n",
|
||||||
pool->idle ? "Dead" : "Alive",
|
pool->idle ? "Dead" : "Alive",
|
||||||
pool->quota,
|
pool->quota,
|
||||||
pool->prio,
|
pool->prio,
|
||||||
disp_name,
|
opt_incognito ? "<incognito>" : pool->poolname,
|
||||||
opt_incognito ? "<incognito>" : pool->rpc_user);
|
opt_incognito ? "<incognito>" : pool->rpc_user);
|
||||||
wattroff(logwin, A_BOLD | A_DIM);
|
wattroff(logwin, A_BOLD | A_DIM);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user