Bump threshhold for lag up to maximum queued but no staged work.
diff --git a/main.c b/main.c
index 05105dc..9daf28c 100644
--- a/main.c
+++ b/main.c
@@ -3103,7 +3103,8 @@ retry:
ret = true;
goto out;
}
- if (requested && requests_queued() > 1 && !pool_tset(pool, &pool->lagging)) {
+ if (requested && requests_queued() >= opt_queue + mining_threads &&
+ !pool_tset(pool, &pool->lagging)) {
applog(LOG_WARNING, "Pool %d not providing work fast enough",
pool->pool_no);
pool->localgen_occasions++;