mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 23:37:54 +00:00
curses - fix - put a dev_width inside #ifdef
This commit is contained in:
parent
aed1e516db
commit
97cb77d18a
@ -6715,7 +6715,9 @@ void enable_device(struct cgpu_info *cgpu)
|
|||||||
mutex_unlock(&devices_lock);
|
mutex_unlock(&devices_lock);
|
||||||
if (hotplug_mode) {
|
if (hotplug_mode) {
|
||||||
new_threads += cgpu->threads;
|
new_threads += cgpu->threads;
|
||||||
|
#ifdef HAVE_CURSES
|
||||||
adj_width(mining_threads + new_threads, &dev_width);
|
adj_width(mining_threads + new_threads, &dev_width);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
mining_threads += cgpu->threads;
|
mining_threads += cgpu->threads;
|
||||||
#ifdef HAVE_CURSES
|
#ifdef HAVE_CURSES
|
||||||
|
Loading…
Reference in New Issue
Block a user