From 4023872b76be05e98118d7efe6f052db431238a7 Mon Sep 17 00:00:00 2001 From: Kano Date: Sat, 1 Sep 2012 23:51:51 +1000 Subject: [PATCH] count device diff1 shares --- cgminer.c | 1 + miner.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index c9114b28..54e9282d 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 a234ecd3..f35ae965 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;