Set initial start time in the stratum loop to zero to guarantee we get a new workbase immediately

This commit is contained in:
Con Kolivas 2014-09-18 11:55:31 +10:00
parent 01240af44d
commit 099701f26b

View File

@ -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) {