Browse Source

Bugfix: modminer: Actually count good shares

Since they weren't being counted, the bad:good ratio was actually based
entirely on the 1000-share handicap
Luke Dashjr 13 years ago
parent
commit
0c00a665df
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-modminer.c

+ 3 - 0
driver-modminer.c

@@ -443,7 +443,10 @@ modminer_process_results(struct thr_info*thr)
 			state->no_nonce_counter = 0;
 			bad = !test_nonce(work, nonce);
 			if (!bad)
+			{
+				++state->good_share_counter;
 				submit_nonce(thr, work, nonce);
+			}
 			else {
 				++hw_errors;
 				if (++modminer->hw_errors * 100 > 1000 + state->good_share_counter)