mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Continue attempting to restart every minute whether a GPU is considered sick or dead.
This commit is contained in:
parent
c0775734fd
commit
40ea56ee6e
6
main.c
6
main.c
@ -5326,8 +5326,10 @@ static void *watchdog_thread(void *userdata)
|
|||||||
} else if (now.tv_sec - thr->last.tv_sec > 600 && gpus[i].status == LIFE_SICK) {
|
} else if (now.tv_sec - thr->last.tv_sec > 600 && gpus[i].status == LIFE_SICK) {
|
||||||
gpus[gpu].status = LIFE_DEAD;
|
gpus[gpu].status = LIFE_DEAD;
|
||||||
applog(LOG_ERR, "Thread %d not responding for more than 10 minutes, GPU %d declared DEAD!", i, gpu);
|
applog(LOG_ERR, "Thread %d not responding for more than 10 minutes, GPU %d declared DEAD!", i, gpu);
|
||||||
} else if (now.tv_sec - thr->sick.tv_sec > 60 && gpus[i].status == LIFE_SICK) {
|
gettimeofday(&thr->sick, NULL);
|
||||||
/* Attempt to restart a GPU once every minute */
|
} else if (now.tv_sec - thr->sick.tv_sec > 60 &&
|
||||||
|
(gpus[i].status == LIFE_SICK || gpus[i].status == LIFE_DEAD)) {
|
||||||
|
/* Attempt to restart a GPU that's sick or dead once every minute */
|
||||||
gettimeofday(&thr->sick, NULL);
|
gettimeofday(&thr->sick, NULL);
|
||||||
#ifdef HAVE_ADL
|
#ifdef HAVE_ADL
|
||||||
if (adl_active && gpus[gpu].has_adl && gpu_activity(gpu) > 50) {
|
if (adl_active && gpus[gpu].has_adl && gpu_activity(gpu) > 50) {
|
||||||
|
Loading…
Reference in New Issue
Block a user