Commit 70edd0d36f9ebbc0c0391867ddb799cbb6e393d8

Con Kolivas 2011-07-16T02:55:43

Disable restarting of CPU mining threads pending further investigation. They may not need it and are easily killed off.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/main.c b/main.c
index bf073d9..d989abd 100644
--- a/main.c
+++ b/main.c
@@ -2011,7 +2011,11 @@ static void *watchdog_thread(void *userdata)
 		}
 
 		gettimeofday(&now, NULL);
+#if 0
 		for (i = 0; i < mining_threads; i++) {
+#else
+		for (i = 0; i < gpu_threads; i++) {
+#endif
 			struct thr_info *thr = &thr_info[i];
 
 			/* Do not kill threads waiting on longpoll staged work