Commit 73c98e1e79490b1f4d8514bccf8ee2a53dce96da

Con Kolivas 2011-08-24T22:07:05

Check if there is more than one work item queued before complaining about a slow pool.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index fb5fc3c..3395c21 100644
--- a/main.c
+++ b/main.c
@@ -3095,7 +3095,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++;