Browse Source

adjust ncurses interface when we change mining_threads count

djm34
Jan Berdajs 11 years ago
parent
commit
f596631a07
  1. 3
      sgminer.c

3
sgminer.c

@ -8084,6 +8084,9 @@ static void restart_mining_threads(unsigned int new_n_threads) @@ -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…
Cancel
Save