Commit 5b488811759d4707b657e92026e7eea765e022fc

Con Kolivas 2011-08-25T21:49:23

Only consider pool lagging if more than one item is queued.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index 76a515e..05105dc 100644
--- a/main.c
+++ b/main.c
@@ -3103,7 +3103,7 @@ retry:
 			ret = true;
 			goto out;
 		}
-		if (requested && !pool_tset(pool, &pool->lagging)) {
+		if (requested && requests_queued() > 1 && !pool_tset(pool, &pool->lagging)) {
 			applog(LOG_WARNING, "Pool %d not providing work fast enough",
 				pool->pool_no);
 			pool->localgen_occasions++;