Browse Source

Set tv_idle time if a pool is not active when input from the menu.

Con Kolivas 13 years ago
parent
commit
e51ee93182
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cgminer.c

+ 3 - 1
cgminer.c

@@ -6022,8 +6022,10 @@ void add_pool_details(struct pool *pool, bool live, char *url, char *user, char
 
 	/* Test the pool is not idle if we're live running, otherwise
 	 * it will be tested separately */
-	if (live && !pool_active(pool, false))
+	if (live && !pool_active(pool, false)) {
+		gettimeofday(&pool->tv_idle, NULL);
 		pool->idle = true;
+	}
 }
 
 #ifdef HAVE_CURSES