From 099701f26b44598307a40e8dc876c30755077b82 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 18 Sep 2014 11:55:31 +1000 Subject: [PATCH] Set initial start time in the stratum loop to zero to guarantee we get a new workbase immediately --- src/stratifier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 906334bc..75477c3e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1103,10 +1103,9 @@ static int stratum_loop(ckpool_t *ckp, proc_instance_t *pi) { int sockd, ret = 0, selret = 0; unixsock_t *us = &pi->us; + tv_t start_tv = {0, 0}; char *buf = NULL; - tv_t start_tv; - tv_time(&start_tv); retry: do { if (!ckp->proxy) {