From e51ee93182fcb5a02316095d082d4466a798b02f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 10 Dec 2012 21:25:17 +1100 Subject: [PATCH] Set tv_idle time if a pool is not active when input from the menu. --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index fd393dff..6f3b793c 100644 --- a/cgminer.c +++ b/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