mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Use cgpu-> not gpus[] in watchdog thread.
This commit is contained in:
parent
454607c30c
commit
ce93c2fc62
@ -4577,7 +4577,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
|
|||||||
dev_count_sick = (cgpu->low_count > WATCHDOG_SICK_COUNT);
|
dev_count_sick = (cgpu->low_count > WATCHDOG_SICK_COUNT);
|
||||||
dev_count_dead = (cgpu->low_count > WATCHDOG_DEAD_COUNT);
|
dev_count_dead = (cgpu->low_count > WATCHDOG_DEAD_COUNT);
|
||||||
|
|
||||||
if (gpus[gpu].status != LIFE_WELL && (now.tv_sec - thr->last.tv_sec < WATCHDOG_SICK_TIME) && dev_count_well) {
|
if (cgpu->status != LIFE_WELL && (now.tv_sec - thr->last.tv_sec < WATCHDOG_SICK_TIME) && dev_count_well) {
|
||||||
applog(LOG_ERR, "%s: Recovered, declaring WELL!", dev_str);
|
applog(LOG_ERR, "%s: Recovered, declaring WELL!", dev_str);
|
||||||
cgpu->status = LIFE_WELL;
|
cgpu->status = LIFE_WELL;
|
||||||
cgpu->device_last_well = time(NULL);
|
cgpu->device_last_well = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user