Browse Source

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

Con Kolivas 14 years ago
parent
commit
73c98e1e79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
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++;