From c4847edf83ba076b53b2029d3922ce91b9493ad8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 27 Mar 2016 21:32:56 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index adbe47648..59d4d0c4a 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -668,9 +668,9 @@ 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 = 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); + printf("MAXBUNDLES %d (%d -> %d) completed %.3f\n",coin->MAXBUNDLES,coin->startPEND,coin->endPEND,completed); } return(coin->MAXBUNDLES); }