mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Only try to adjust dev width when curses is built in.
This commit is contained in:
parent
8b3c20bc06
commit
8bc7d1c9a0
@ -4979,7 +4979,9 @@ void enable_device(struct cgpu_info *cgpu)
|
|||||||
cgpu->deven = DEV_ENABLED;
|
cgpu->deven = DEV_ENABLED;
|
||||||
devices[cgpu->cgminer_id = cgminer_id_count++] = cgpu;
|
devices[cgpu->cgminer_id = cgminer_id_count++] = cgpu;
|
||||||
mining_threads += cgpu->threads;
|
mining_threads += cgpu->threads;
|
||||||
|
#ifdef HAVE_CURSES
|
||||||
adj_width(mining_threads, &dev_width);
|
adj_width(mining_threads, &dev_width);
|
||||||
|
#endif
|
||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
if (cgpu->api == &opencl_api) {
|
if (cgpu->api == &opencl_api) {
|
||||||
gpu_threads += cgpu->threads;
|
gpu_threads += cgpu->threads;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user