mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-13 08:17:59 +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
|
||||
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));
|
||||
if (!mining_thr)
|
||||
quit(1, "Failed to calloc mining_thr");
|
||||
|
Loading…
Reference in New Issue
Block a user