From d41d210b03ee16c9ad4cfb439916b30a341dc9b6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 15 Apr 2013 23:01:08 +1000 Subject: [PATCH] Set device_diff for queued work or there will be no diff1 share count. --- cgminer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cgminer.c b/cgminer.c index b0e3c69b..f2840f0d 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);