Browse Source

Simplify the enough work algorithm dramatically.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
b60f9da4a5
  1. 10
      cgminer.c

10
cgminer.c

@ -2408,9 +2408,13 @@ static void *get_work_thread(void *userdata) @@ -2408,9 +2408,13 @@ static void *get_work_thread(void *userdata)
ts = __total_staged();
mutex_unlock(stgd_lock);
if (((cs >= opt_queue || cq >= opt_queue) && ts >= maxq) ||
((cs >= opt_queue || cq >= opt_queue) && tq >= maxq && ((cq < maxq && !opt_fail_only) || opt_fail_only)) ||
clone_available())
if (ts >= maxq)
goto out;
if (ts >= opt_queue && tq >= maxq)
goto out;
if (clone_available())
goto out;
ret_work = make_work();

Loading…
Cancel
Save