From 2d180d3765abd925949c1c695744043b9244a2e2 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 13 Apr 2016 08:15:56 +0800 Subject: [PATCH] numbers precision changed --- src/page.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/page.h b/src/page.h index 15338a5..e03991e 100644 --- a/src/page.h +++ b/src/page.h @@ -160,9 +160,9 @@ namespace xmreg { XMR_AMOUNT(coinbase_tx[1]), XMR_AMOUNT(sum_fees))}, {"notx" , fmt::format("{:d}", blk.tx_hashes.size())}, - {"xmr_inputs" , fmt::format("{:0.4f}", + {"xmr_inputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_xmr_in_out[0]))}, - {"xmr_outputs" , fmt::format("{:0.4f}", + {"xmr_outputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_xmr_in_out[1]))}, {"mixin_range" , mstch::lambda {mixin_format}} }); @@ -257,8 +257,8 @@ namespace xmreg { {"timestamp" , xmreg::timestamp_to_str(_tx_info.receive_time)}, {"hash" , fmt::format("<{:s}>", _tx_info.id_hash)}, {"fee" , fmt::format("{:0.4f}", XMR_AMOUNT(_tx_info.fee))}, - {"xmr_inputs" , fmt::format("{:0.4f}", XMR_AMOUNT(sum_inputs))}, - {"xmr_outputs" , fmt::format("{:0.4f}", XMR_AMOUNT(sum_outputs))}, + {"xmr_inputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_inputs))}, + {"xmr_outputs" , fmt::format("{:0.2f}", XMR_AMOUNT(sum_outputs))}, {"mixin" , fmt::format("{:d}", mixin_numbers.at(0))} }); }