1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Set first localgen time to max.

This commit is contained in:
Con Kolivas 2011-07-19 10:31:05 +10:00
parent ecda75946b
commit 048bea201f

3
main.c
View File

@ -222,6 +222,9 @@ static void add_pool(void)
applog(LOG_ERR, "Failed to pthread_mutex_init in add_pool"); applog(LOG_ERR, "Failed to pthread_mutex_init in add_pool");
exit (1); exit (1);
} }
/* Make sure the pool doesn't think we've been idle since time 0 if
* we rush to !localgen */
pool->tv_localgen.tv_sec = ~0UL;
} }
/* Pool variant of test and set */ /* Pool variant of test and set */