xmr_amount_to_str corrected

master
moneroexamples 8 years ago
parent b4eb465d52
commit 667353ec11

@ -34,7 +34,7 @@
{{#testnet}} {{#testnet}}
<div class="center"> <div class="center">
<form action="/search" method="get" style="width:100%; margin-top:15px" class="style-1"> <form action="/search" method="get" style="width:100%; margin-top:15px" class="style-1">
<input type="text" name="value" size="100" <input type="text" name="value" size="90"
placeholder="blk height, blk hash, tx hash, tx payment id"> placeholder="blk height, blk hash, tx hash, tx payment id">
<input type="submit" value="Search"> <input type="submit" value="Search">
</form> </form>

@ -251,9 +251,9 @@ parse(const std::string& str, string format="%Y-%m-%d %H:%M:%S");
static static
string string
xmr_amount_to_str(const uint64_t& xmr_amount, string format="{:0.12f}") xmr_amount_to_str(const uint64_t& xmr_amount, string _format="{:0.12f}")
{ {
return fmt::format("{:0.12f}", XMR_AMOUNT(xmr_amount)); return fmt::format(_format, XMR_AMOUNT(xmr_amount));
} }
bool bool

Loading…
Cancel
Save