Browse Source

Factor in opt_queue value into enough work queued or staged.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
44e81218fd
  1. 7
      cgminer.c

7
cgminer.c

@ -2391,9 +2391,10 @@ static void *get_work_thread(void *userdata)
if (!ts) if (!ts)
lagging = true; lagging = true;
else if (((cs || cq >= opt_queue) && ts >= maxq) || if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
((cs || cq) && tq >= maxq) || clone_available()) ((cs >= opt_queue || cq >= opt_queue) && tq >= maxq) ||
goto out; clone_available())
goto out;
ret_work = make_work(); ret_work = make_work();
if (wc->thr) if (wc->thr)

Loading…
Cancel
Save