mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Set tv_idle time if a pool is not active when input from the menu.
This commit is contained in:
parent
7d14572973
commit
e51ee93182
@ -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
|
/* Test the pool is not idle if we're live running, otherwise
|
||||||
* it will be tested separately */
|
* 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;
|
pool->idle = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CURSES
|
#ifdef HAVE_CURSES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user