From 9410875e2f3742d530e231aaba38b8007a6eb20a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 2 Aug 2012 22:46:13 +1000 Subject: [PATCH] Make threads report in either side of the scanhash function in case we miss reporting in when restarting work. --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 82d06271..ed19b3a4 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);