1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-10 05:54:21 +00:00

Be more willing to get work from the backup pools if the work is simply being queued faster than it is being retrieved.

This commit is contained in:
Con Kolivas 2011-07-30 21:56:51 +10:00
parent ea22674624
commit bc2976f538

8
main.c
View File

@ -2319,10 +2319,10 @@ static bool queue_request(struct thr_info *thr)
else else
wc->thr = NULL; wc->thr = NULL;
/* If we've queued more than 2/3 of the maximum and still have no /* If we're queueing work faster than we can stage it, consider the
* staged work, consider the system lagging and allow work to be * system lagging and allow work to be gathered from another pool if
* gathered from another pool if possible */ * possible */
if (rq > (maxq * 2 / 3) && !rs) if (rq > rs)
wc->lagging = true; wc->lagging = true;
if (opt_debug) if (opt_debug)