Skip to content

Commit

Permalink
Revert "Increase watchdog sick time to 300 seconds"
Browse files Browse the repository at this point in the history
This reverts commit d625fc8.
  • Loading branch information
luke-jr committed Nov 10, 2014
1 parent de6e604 commit 3f9b39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miner.c
Expand Up @@ -10837,7 +10837,7 @@ void drv_set_defaults(const struct device_drv * const drv, const void *datap, vo
/* 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
* died. */
#define WATCHDOG_SICK_TIME 300
#define WATCHDOG_SICK_TIME 60
#define WATCHDOG_DEAD_TIME 600
#define WATCHDOG_SICK_COUNT (WATCHDOG_SICK_TIME/WATCHDOG_INTERVAL)
#define WATCHDOG_DEAD_COUNT (WATCHDOG_DEAD_TIME/WATCHDOG_INTERVAL)
Expand Down Expand Up @@ -11016,7 +11016,7 @@ void bfg_watchdog(struct cgpu_info * const cgpu, struct timeval * const tvp_now)
} else if (cgpu->status == LIFE_WELL && (tvp_now->tv_sec - thr->last.tv_sec > WATCHDOG_SICK_TIME)) {
thr->rolling = cgpu->rolling = 0;
cgpu->status = LIFE_SICK;
applog(LOG_ERR, "%s: Idle for more than %d seconds, declaring SICK!", dev_str, WATCHDOG_SICK_TIME);
applog(LOG_ERR, "%s: Idle for more than 60 seconds, declaring SICK!", dev_str);
cgtime(&thr->sick);

dev_error(cgpu, REASON_DEV_SICK_IDLE_60);
Expand Down

0 comments on commit 3f9b39d

Please sign in to comment.