mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +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");
|
||||
} else {
|
||||
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->diff,
|
||||
opt_incognito ? "<incognito>" : pool->rpc_user);
|
||||
@ -4499,7 +4499,6 @@ static void display_pools(void)
|
||||
struct pool *pool;
|
||||
int selected, i;
|
||||
char input;
|
||||
char *disp_name;
|
||||
|
||||
opt_loginput = true;
|
||||
immedok(logwin, true);
|
||||
@ -4529,16 +4528,11 @@ updated:
|
||||
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",
|
||||
pool->idle ? "Dead" : "Alive",
|
||||
pool->quota,
|
||||
pool->prio,
|
||||
disp_name,
|
||||
opt_incognito ? "<incognito>" : pool->poolname,
|
||||
opt_incognito ? "<incognito>" : pool->rpc_user);
|
||||
wattroff(logwin, A_BOLD | A_DIM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user