Browse Source

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

master
Con Kolivas 10 years ago
parent
commit
099701f26b
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -1103,10 +1103,9 @@ static int stratum_loop(ckpool_t *ckp, proc_instance_t *pi)
{ {
int sockd, ret = 0, selret = 0; int sockd, ret = 0, selret = 0;
unixsock_t *us = &pi->us; unixsock_t *us = &pi->us;
tv_t start_tv = {0, 0};
char *buf = NULL; char *buf = NULL;
tv_t start_tv;
tv_time(&start_tv);
retry: retry:
do { do {
if (!ckp->proxy) { if (!ckp->proxy) {

Loading…
Cancel
Save