increase precision of printed fee

master
stoffu 6 years ago
parent e29a7ba133
commit 639be9d767
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

@ -168,7 +168,7 @@ MempoolStatus::read_mempool()
last_tx.mixin_no = sum_data[2]; last_tx.mixin_no = sum_data[2];
last_tx.num_nonrct_inputs = sum_data[3]; last_tx.num_nonrct_inputs = sum_data[3];
last_tx.fee_str = xmreg::xmr_amount_to_str(_tx_info.fee, "{:0.3f}", false); last_tx.fee_str = xmreg::xmr_amount_to_str(_tx_info.fee, "{:0.4f}", false);
last_tx.payed_for_kB_str = fmt::format("{:0.4f}", payed_for_kB); last_tx.payed_for_kB_str = fmt::format("{:0.4f}", payed_for_kB);
last_tx.xmr_inputs_str = xmreg::xmr_amount_to_str(last_tx.sum_inputs , "{:0.3f}"); last_tx.xmr_inputs_str = xmreg::xmr_amount_to_str(last_tx.sum_inputs , "{:0.3f}");
last_tx.xmr_outputs_str = xmreg::xmr_amount_to_str(last_tx.sum_outputs, "{:0.3f}"); last_tx.xmr_outputs_str = xmreg::xmr_amount_to_str(last_tx.sum_outputs, "{:0.3f}");

@ -256,8 +256,8 @@ struct tx_details
mixin_str = std::to_string(mixin_no); mixin_str = std::to_string(mixin_no);
fee_str = fmt::format("{:0.6f}", xmr_amount); fee_str = fmt::format("{:0.6f}", xmr_amount);
fee_short_str = fmt::format("{:0.3f}", xmr_amount); fee_short_str = fmt::format("{:0.4f}", xmr_amount);
payed_for_kB_str = fmt::format("{:0.3f}", payed_for_kB); payed_for_kB_str = fmt::format("{:0.4f}", payed_for_kB);
} }
@ -5542,7 +5542,7 @@ json_emission()
string emission_blk_no = std::to_string(current_values.blk_no - 1); string emission_blk_no = std::to_string(current_values.blk_no - 1);
string emission_coinbase = xmr_amount_to_str(current_values.coinbase, "{:0.3f}"); string emission_coinbase = xmr_amount_to_str(current_values.coinbase, "{:0.3f}");
string emission_fee = xmr_amount_to_str(current_values.fee, "{:0.3f}", false); string emission_fee = xmr_amount_to_str(current_values.fee, "{:0.4f}", false);
j_data = json { j_data = json {
{"blk_no" , current_values.blk_no - 1}, {"blk_no" , current_values.blk_no - 1},

Loading…
Cancel
Save