Browse Source

Bugfix: Restore disabled label, needed to skip over hashrate calculations (which mess up otherwise)

Luke Dashjr 13 years ago
parent
commit
4b3017d3be
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cgminer.c

+ 2 - 1
cgminer.c

@@ -4125,7 +4125,7 @@ void *miner_thread(void *userdata)
 				cgpu->device_not_well_reason = REASON_THREAD_ZERO_HASH;
 				cgpu->thread_zero_hash_count++;
 
-				mt_disable(mythr, thr_id, api);
+				goto disabled;
 			}
 
 			hashes_done += hashes;
@@ -4184,6 +4184,7 @@ void *miner_thread(void *userdata)
 			}
 
 			if (unlikely(mythr->pause || cgpu->deven != DEV_ENABLED))
+disabled:
 				mt_disable(mythr, thr_id, api);
 
 			sdiff.tv_sec = sdiff.tv_usec = 0;