Commit 4a2975948048f643bbcfd6e2741b0973cab141a2

Con Kolivas 2012-09-29T14:48:34

Set lagging flag on first adding a pool to prevent pool slow warning at startup.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/cgminer.c b/cgminer.c
index 6b43ae8..eaaba84 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5383,9 +5383,13 @@ void add_pool_details(struct pool *pool, bool live, char *url, char *user, char 
 		quit(1, "Failed to malloc userpass");
 	sprintf(pool->rpc_userpass, "%s:%s", pool->rpc_user, pool->rpc_pass);
 
+	enable_pool(pool);
+
+	/* Prevent noise on startup */
+	pool->lagging = true;
+
 	/* Test the pool is not idle if we're live running, otherwise
 	 * it will be tested separately */
-	enable_pool(pool);
 	if (live && !pool_active(pool, false))
 		pool->idle = true;
 }