Browse Source

Bugfix: ztex: Increment global hw_errors too

Luke Dashjr 13 years ago
parent
commit
cb953efc02
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ztex.c

+ 1 - 0
ztex.c

@@ -219,6 +219,7 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
 			}
 			}
 			if (!ztex_checkNonce(ztex, work, &hdata[i])) {
 			if (!ztex_checkNonce(ztex, work, &hdata[i])) {
 				thr->cgpu->hw_errors++;
 				thr->cgpu->hw_errors++;
+				++hw_errors;
 				continue;
 				continue;
 			}
 			}
 			nonce = hdata[i].goldenNonce;
 			nonce = hdata[i].goldenNonce;