Browse Source

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

nfactor-troky
Con Kolivas 14 years ago
parent
commit
0899ee86ae
  1. 10
      main.c

10
main.c

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

Loading…
Cancel
Save