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:
parent
611f1cec7c
commit
44e81218fd
@ -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…
Reference in New Issue
Block a user