Commit fd2034ce7728862a50f2d20cdd5e9e74c7cef661

Kano 2012-09-04T00:56:35

Merge branch 'main'

diff --git a/cgminer.c b/cgminer.c
index 3c3c619..d124dc7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4186,6 +4186,7 @@ bool test_nonce(struct work *work, uint32_t nonce)
 bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce)
 {
 	total_diff1++;
+	thr->cgpu->diff1++;
 	work->pool->diff1++;
 
 	/* Do one last check before attempting to submit the work */
diff --git a/miner.h b/miner.h
index a234ecd..f35ae96 100644
--- a/miner.h
+++ b/miner.h
@@ -396,6 +396,7 @@ struct cgpu_info {
 	int gpu_powertune;
 	float gpu_vddc;
 #endif
+	int diff1;
 	int last_share_pool;
 	time_t last_share_pool_time;