Browse Source

Bugfix: SICK low-hashrate is now determined by being under 1/3 the runtime average hashrate

Only active if the average hashrate is at least 3 MH/s
Luke Dashjr 13 years ago
parent
commit
cab9bdc3db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

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