1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +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,8 +2391,9 @@ 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) ||
clone_available())
goto out; goto out;
ret_work = make_work(); ret_work = make_work();