1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Again do not attempt to restart a hung device with the every minute attempted restart.

This commit is contained in:
Con Kolivas 2012-01-01 08:47:07 +11:00
parent 19e373b803
commit c0775734fd

5
main.c
View File

@ -5329,6 +5329,11 @@ static void *watchdog_thread(void *userdata)
} else if (now.tv_sec - thr->sick.tv_sec > 60 && gpus[i].status == LIFE_SICK) { } else if (now.tv_sec - thr->sick.tv_sec > 60 && gpus[i].status == LIFE_SICK) {
/* Attempt to restart a GPU once every minute */ /* Attempt to restart a GPU once every minute */
gettimeofday(&thr->sick, NULL); gettimeofday(&thr->sick, NULL);
#ifdef HAVE_ADL
if (adl_active && gpus[gpu].has_adl && gpu_activity(gpu) > 50) {
/* Again do not attempt to restart a device that may have hard hung */
} else
#endif
if (opt_restart) if (opt_restart)
reinit_device(thr->cgpu); reinit_device(thr->cgpu);
} }