Browse Source

Merge branch 'master' into avalon-dev

Con Kolivas 13 years ago
parent
commit
9c48d68411
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -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);