BitGit
/
cpuminer/cgminer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
8b3c20b
)
Only try to adjust dev width when curses is built in.
author
Con Kolivas
<kernel@kolivas.org>
Wed, 4 Jul 2012 22:59:09 +0000 (08:59 +1000)
committer
Con Kolivas
<kernel@kolivas.org>
Wed, 4 Jul 2012 22:59:09 +0000 (08:59 +1000)
cgminer.c
patch
|
blob
|
blame
|
history
diff --git
a/cgminer.c
b/cgminer.c
index
34612f9
..
29ffc38
100644
(file)
--- a/
cgminer.c
+++ b/
cgminer.c
@@
-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;