1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

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

This commit is contained in:
Con Kolivas 2013-04-15 23:01:08 +10:00
parent dbab07a12d
commit d41d210b03

View File

@ -5768,6 +5768,7 @@ static void fill_queue(struct thr_info *mythr, struct cgpu_info *cgpu, struct de
if (need_work) { if (need_work) {
struct work *work = get_work(mythr, thr_id); struct work *work = get_work(mythr, thr_id);
work->device_diff = MIN(drv->max_diff, work->work_difficulty);
wr_lock(&cgpu->qlock); wr_lock(&cgpu->qlock);
HASH_ADD_INT(cgpu->queued_work, id, work); HASH_ADD_INT(cgpu->queued_work, id, work);
wr_unlock(&cgpu->qlock); wr_unlock(&cgpu->qlock);