Browse Source

Bugfix: modminer: Count hashes done before work restart

Luke Dashjr 13 years ago
parent
commit
d571a60b1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-modminer.c

+ 1 - 1
driver-modminer.c

@@ -492,7 +492,7 @@ modminer_scanhash(struct thr_info*thr, struct work*work, int64_t __maybe_unused
 		hashes = modminer_process_results(thr);
 		hashes = modminer_process_results(thr);
 		if (work_restart(thr)) {
 		if (work_restart(thr)) {
 			state->work_running = false;
 			state->work_running = false;
-			return 0;
+			return hashes;
 		}
 		}
 	} else
 	} else
 		state->work_running = true;
 		state->work_running = true;