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);