Commit 9410875e2f3742d530e231aaba38b8007a6eb20a

Con Kolivas 2012-08-02T22:46:13

Make threads report in either side of the scanhash function in case we miss reporting in when restarting work.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 82d0627..ed19b3a 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4197,7 +4197,9 @@ void *miner_thread(void *userdata)
 			}
 			pool_stats->getwork_calls++;
 
+			thread_reportin(mythr);
 			hashes = api->scanhash(mythr, work, work->blk.nonce + max_nonce);
+			thread_reportin(mythr);
 
 			gettimeofday(&getwork_start, NULL);