From 5b488811759d4707b657e92026e7eea765e022fc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 25 Aug 2011 21:49:23 +1000 Subject: [PATCH] Only consider pool lagging if more than one item is queued. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 76a515e1..05105dc1 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++;