Commit 048bea201fed501db7d88b943cbb5b55fa0ebd66

Con Kolivas 2011-07-19T10:31:05

Set first localgen time to max.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/main.c b/main.c
index 786c0d8..682096a 100644
--- a/main.c
+++ b/main.c
@@ -222,6 +222,9 @@ static void add_pool(void)
 		applog(LOG_ERR, "Failed to pthread_mutex_init in add_pool");
 		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 */