Commit d41d210b03ee16c9ad4cfb439916b30a341dc9b6

Con Kolivas 2013-04-15T23:01:08

Set device_diff for queued work or there will be no diff1 share count.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index b0e3c69..f2840f0 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5768,6 +5768,7 @@ static void fill_queue(struct thr_info *mythr, struct cgpu_info *cgpu, struct de
 		if (need_work) {
 			struct work *work = get_work(mythr, thr_id);
 
+			work->device_diff = MIN(drv->max_diff, work->work_difficulty);
 			wr_lock(&cgpu->qlock);
 			HASH_ADD_INT(cgpu->queued_work, id, work);
 			wr_unlock(&cgpu->qlock);