From ab382c6258d5f42b1e21f36a9899144c65c9fc33 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 28 Aug 2016 07:37:43 -0300 Subject: [PATCH] test --- iguana/iguana_wallet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_wallet.c b/iguana/iguana_wallet.c index a38e2b4f2..a7912a569 100755 --- a/iguana/iguana_wallet.c +++ b/iguana/iguana_wallet.c @@ -1063,12 +1063,12 @@ ZERO_ARGS(bitcoinrpc,getinfo) jaddnum(retjson,"protocolversion",PROTOCOL_VERSION); jaddnum(retjson,"kbfee",dstr(coin->txfee_perkb)); jaddnum(retjson,"txfee",dstr(coin->txfee)); - if ( coin->bundlescount > 0 ) + if ( coin->bundlescount > 1 ) { - jaddnum(retjson,"bundles",100. * (double)iguana_emitfinished(coin,0)/coin->bundlescount); - jaddnum(retjson,"utxo",100. * (double)iguana_utxofinished(coin)/coin->bundlescount); - jaddnum(retjson,"balances",100. * (double)iguana_balancefinished(coin)/coin->bundlescount); - jaddnum(retjson,"validated",100. * (double)iguana_validated(coin)/coin->bundlescount); + jaddnum(retjson,"bundles",100. * (double)iguana_emitfinished(coin,0)/(coin->bundlescount-1)); + jaddnum(retjson,"utxo",100. * (double)iguana_utxofinished(coin)/(coin->bundlescount-1)); + jaddnum(retjson,"balances",100. * (double)iguana_balancefinished(coin)/(coin->bundlescount-1)); + jaddnum(retjson,"validated",100. * (double)iguana_validated(coin)/(coin->bundlescount-1)); } jaddnum(retjson,"firstRTheight",coin->firstRTheight); jaddnum(retjson,"RTheight",coin->RTheight);