1
0
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:
Jan Berdajs 2014-05-29 02:05:15 +02:00
parent 6c5ce535d9
commit f596631a07

View File

@ -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");