Commit 6ed75c96cbc085dca182ea28d59d9993d2ea1aa5

Paul Sheppard 2012-06-15T12:11:28

Remove nDev limit in watchdog_thread Can't work out why it was even there... so there could still be a reason for it!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/cgminer.c b/cgminer.c
index db1339d..dd215fc 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4348,13 +4348,10 @@ static void *watchdog_thread(void __maybe_unused *userdata)
 			enum dev_enable *denable;
 			int gpu;
 			char dev_str[8];
-			
+
 			if (cgpu->api->get_stats)
 			  cgpu->api->get_stats(cgpu);
 
-			/* Use only one thread per device to determine if the GPU is healthy */
-			if (i >= nDevs)
-				break;
 			gpu = thr->cgpu->device_id;
 			denable = &cgpu->deven;
 			sprintf(dev_str, "%s%d", cgpu->api->name, gpu);