mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 16:58:05 +00:00
adjust ncurses interface when we change mining_threads count
This commit is contained in:
parent
6c5ce535d9
commit
f596631a07
@ -8084,6 +8084,9 @@ static void restart_mining_threads(unsigned int new_n_threads)
|
|||||||
|
|
||||||
// Alloc
|
// Alloc
|
||||||
mining_threads = (int) new_n_threads;
|
mining_threads = (int) new_n_threads;
|
||||||
|
#ifdef HAVE_CURSES
|
||||||
|
adj_width(mining_threads, &dev_width);
|
||||||
|
#endif
|
||||||
mining_thr = (struct thr_info **)calloc(mining_threads, sizeof(thr));
|
mining_thr = (struct thr_info **)calloc(mining_threads, sizeof(thr));
|
||||||
if (!mining_thr)
|
if (!mining_thr)
|
||||||
quit(1, "Failed to calloc mining_thr");
|
quit(1, "Failed to calloc mining_thr");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user