Browse Source

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

Con Kolivas 13 years ago
parent
commit
9410875e2f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -4197,7 +4197,9 @@ void *miner_thread(void *userdata)
 			}
 			}
 			pool_stats->getwork_calls++;
 			pool_stats->getwork_calls++;
 
 
+			thread_reportin(mythr);
 			hashes = api->scanhash(mythr, work, work->blk.nonce + max_nonce);
 			hashes = api->scanhash(mythr, work, work->blk.nonce + max_nonce);
+			thread_reportin(mythr);
 
 
 			gettimeofday(&getwork_start, NULL);
 			gettimeofday(&getwork_start, NULL);