1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-10 14:04:16 +00:00

Only consider pool slow to respond if we can't even roll work.

This commit is contained in:
Con Kolivas 2011-08-24 20:45:30 +10:00
parent 7407e887f6
commit 0899ee86ae

10
main.c
View File

@ -3128,17 +3128,17 @@ retry:
} }
if (!requests_staged()) { if (!requests_staged()) {
if (can_roll(work)) {
roll_work(work);
ret = true;
goto out;
}
if (requested && !pool_tset(pool, &pool->lagging)) { if (requested && !pool_tset(pool, &pool->lagging)) {
applog(LOG_WARNING, "Pool %d not providing work fast enough", applog(LOG_WARNING, "Pool %d not providing work fast enough",
pool->pool_no); pool->pool_no);
pool->localgen_occasions++; pool->localgen_occasions++;
total_lo++; total_lo++;
} }
if (can_roll(work)) {
roll_work(work);
ret = true;
goto out;
}
} }
requested = false; requested = false;