|
@@ -4518,7 +4518,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
|
|
|
if (thr->getwork || *denable == DEV_DISABLED)
|
|
if (thr->getwork || *denable == DEV_DISABLED)
|
|
|
continue;
|
|
continue;
|
|
|
|
|
|
|
|
- if (cgpu->rolling < WATCHDOG_LOW_HASH)
|
|
|
|
|
|
|
+ if (max(WATCHDOG_LOW_HASH, cgpu->rolling) < cgpu->total_mhashes / total_secs / 3)
|
|
|
cgpu->low_count++;
|
|
cgpu->low_count++;
|
|
|
else
|
|
else
|
|
|
cgpu->low_count = 0;
|
|
cgpu->low_count = 0;
|