mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Only use GPU management menu item if GPU threads exist.
This commit is contained in:
parent
a51514d9d1
commit
5e2e2f282d
4
main.c
4
main.c
@ -2060,7 +2060,7 @@ static void curses_print_status(void)
|
|||||||
mvwhline(statuswin, 6, 0, '-', 80);
|
mvwhline(statuswin, 6, 0, '-', 80);
|
||||||
mvwhline(statuswin, logstart - 1, 0, '-', 80);
|
mvwhline(statuswin, logstart - 1, 0, '-', 80);
|
||||||
mvwprintw(statuswin, gpucursor - 1, 1, "[P]ool management %s[S]ettings [D]isplay options [Q]uit",
|
mvwprintw(statuswin, gpucursor - 1, 1, "[P]ool management %s[S]ettings [D]isplay options [Q]uit",
|
||||||
opt_g_threads ? "[G]PU management " : "");
|
gpu_threads ? "[G]PU management " : "");
|
||||||
/* The window will be updated once we're done with all the devices */
|
/* The window will be updated once we're done with all the devices */
|
||||||
wnoutrefresh(statuswin);
|
wnoutrefresh(statuswin);
|
||||||
}
|
}
|
||||||
@ -3722,7 +3722,7 @@ static void *input_thread(void *userdata)
|
|||||||
display_pools();
|
display_pools();
|
||||||
else if (!strncasecmp(&input, "s", 1))
|
else if (!strncasecmp(&input, "s", 1))
|
||||||
set_options();
|
set_options();
|
||||||
else if (!strncasecmp(&input, "g", 1))
|
else if (gpu_threads && !strncasecmp(&input, "g", 1))
|
||||||
manage_gpu();
|
manage_gpu();
|
||||||
if (opt_realquiet) {
|
if (opt_realquiet) {
|
||||||
disable_curses();
|
disable_curses();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user