From c004cc8cb6069196356a3d7c4dec83b6379d2646 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 31 Mar 2016 13:56:26 -0600 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_bundles.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 8fbee1544..7e3ee06b6 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -42,7 +42,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_HEADPERCENTAGE 0. #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 -#define IGUANA_MAXPENDINGREQUESTS 3 +#define IGUANA_MAXPENDINGREQUESTS 2 #define IGUANA_PENDINGREQUESTS 64 #define IGUANA_MINPENDBUNDLES 2 #define IGUANA_MAXPENDBUNDLES 128 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index c01f1e525..394bc0be8 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -618,7 +618,7 @@ int32_t iguana_setmaxbundles(struct iguana_info *coin) double completed; if ( coin->current != 0 && coin->bundlescount != 0 ) { - completed = cbrt(((double)coin->current->hdrsi + 1) / coin->bundlescount); + completed = sqrt(((double)coin->current->hdrsi + 1) / coin->bundlescount); coin->MAXBUNDLES = (double)(coin->endPEND - coin->startPEND)*completed + coin->startPEND; //printf("MAXBUNDLES %d (%d -> %d) completed %.3f\n",coin->MAXBUNDLES,coin->startPEND,coin->endPEND,completed); }