From 723d44a2a3cb79b91adab4cd49ffb0af8e2126f1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 31 Mar 2016 10:57:22 -0600 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 1c17c25ed..80987c0e5 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -614,7 +614,7 @@ int32_t iguana_setmaxbundles(struct iguana_info *coin) double completed; if ( coin->current != 0 && coin->bundlescount != 0 ) { - completed = sqrt(((double)coin->current->hdrsi + 1) / coin->bundlescount); + completed = cbrt(((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); }