Browse Source

Hard code the watchdog interval to 3 seconds in case log interval is greatly different.

Con Kolivas 14 years ago
parent
commit
8759bc13ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -4696,7 +4696,7 @@ static bool active_device(int thr_id)
  * died. */
  * died. */
 static void *watchdog_thread(void *userdata)
 static void *watchdog_thread(void *userdata)
 {
 {
-	const unsigned int interval = opt_log_interval / 2 ? : 1;
+	const unsigned int interval = 3;
 	static struct timeval rotate_tv;
 	static struct timeval rotate_tv;
 	struct timeval zero_tv;
 	struct timeval zero_tv;