Commit e81a362b5f0622f6b431eee56fb0aac888a8f18c

Con Kolivas 2011-08-25T23:33:41

Bump threshhold for lag up to maximum queued but no staged work.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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++;