Browse Source

Only try to adjust dev width when curses is built in.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
8bc7d1c9a0
  1. 2
      cgminer.c

2
cgminer.c

@ -4979,7 +4979,9 @@ void enable_device(struct cgpu_info *cgpu) @@ -4979,7 +4979,9 @@ void enable_device(struct cgpu_info *cgpu)
cgpu->deven = DEV_ENABLED;
devices[cgpu->cgminer_id = cgminer_id_count++] = cgpu;
mining_threads += cgpu->threads;
#ifdef HAVE_CURSES
adj_width(mining_threads, &dev_width);
#endif
#ifdef HAVE_OPENCL
if (cgpu->api == &opencl_api) {
gpu_threads += cgpu->threads;

Loading…
Cancel
Save