mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Only consider pool slow to respond if we can't even roll work.
This commit is contained in:
parent
7407e887f6
commit
0899ee86ae
10
main.c
10
main.c
@ -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…
x
Reference in New Issue
Block a user