1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Factor in opt_queue value into enough work queued or staged.

This commit is contained in:
Con Kolivas 2012-08-15 22:56:18 +10:00
parent 611f1cec7c
commit 44e81218fd

View File

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