mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-27 23:14:21 +00:00
Show menu again after enable, disable and restart GPU.
This commit is contained in:
parent
20ddda10dc
commit
813aee385b
3
main.c
3
main.c
@ -3255,6 +3255,7 @@ retry:
|
||||
|
||||
tq_push(thr->q, &ping);
|
||||
}
|
||||
goto retry;
|
||||
} if (!strncasecmp(&input, "d", 1)) {
|
||||
if (selected)
|
||||
selected = curses_int("Select GPU to disable");
|
||||
@ -3267,6 +3268,7 @@ retry:
|
||||
goto retry;
|
||||
}
|
||||
gpu_devices[selected] = false;
|
||||
goto retry;
|
||||
} else if (!strncasecmp(&input, "r", 1)) {
|
||||
if (selected)
|
||||
selected = curses_int("Select GPU to attempt to restart");
|
||||
@ -3276,6 +3278,7 @@ retry:
|
||||
}
|
||||
wlogprint("Attempting to restart threads of GPU %d\n", selected);
|
||||
reinit_device(&gpus[selected]);
|
||||
goto retry;
|
||||
} else if (adl_active && (!strncasecmp(&input, "c", 1))) {
|
||||
if (selected)
|
||||
selected = curses_int("Select GPU to change settings on");
|
||||
|
Loading…
x
Reference in New Issue
Block a user