From 50275a8d714e2c7a069dec6e7e672d43b9d41181 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 22:49:49 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 99f5ce13a..18f4c3da8 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -439,7 +439,9 @@ int64_t iguana_bundlecalcs(struct iguana_info *coin,struct iguana_bundle *bp) bp->emitfinish = 1; iguana_emitQ(coin,bp); } - else bp->metric = (2*bp->n - bp->numsaved - bp->numrecv);// * (bp->hdrsi + 1);//sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1)); + else if ( bp->hdrsi == coin->bundlescount-1 ) + bp->metric = 1; + else bp->metric = (2*bp->n - bp->numsaved - bp->numrecv) * (bp->hdrsi + 1);//sqrt((sqrt(fabs(bp->estsize - bp->datasize)) * (bp->n - bp->numsaved)) * (bp->hdrsi + 1)); } //printf("%f ",bp->metric); return(bp->estsize);