Commit ccfa893577a8d6d87d246ca2dd3335031e83f7a3

Con Kolivas 2013-06-19T13:20:25

Increase watchdog sick time to longer than it takes for a pool to be detected dead.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 059bddb..bdb0be2 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6443,7 +6443,7 @@ static void *watchpool_thread(void __maybe_unused *userdata)
  * the screen at regular intervals, and restarts threads if they appear to have
  * died. */
 #define WATCHDOG_INTERVAL		2
-#define WATCHDOG_SICK_TIME		60
+#define WATCHDOG_SICK_TIME		120
 #define WATCHDOG_DEAD_TIME		600
 #define WATCHDOG_SICK_COUNT		(WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)
 #define WATCHDOG_DEAD_COUNT		(WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)