1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-09 21:44:25 +00:00

Speed up watchdog interval and therefore display updates to 2 seconds.

This commit is contained in:
Con Kolivas 2013-02-25 09:15:20 +11:00
parent 5a3b374962
commit d9d5a1a0b6

View File

@ -5843,7 +5843,7 @@ static void *watchpool_thread(void __maybe_unused *userdata)
/* Makes sure the hashmeter keeps going even if mining threads stall, updates /* Makes sure the hashmeter keeps going even if mining threads stall, updates
* the screen at regular intervals, and restarts threads if they appear to have * the screen at regular intervals, and restarts threads if they appear to have
* died. */ * died. */
#define WATCHDOG_INTERVAL 3 #define WATCHDOG_INTERVAL 2
#define WATCHDOG_SICK_TIME 60 #define WATCHDOG_SICK_TIME 60
#define WATCHDOG_DEAD_TIME 600 #define WATCHDOG_DEAD_TIME 600
#define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL) #define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)