Browse Source

Factor in opt_queue value into enough work queued or staged.

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

5
cgminer.c

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

Loading…
Cancel
Save