xmr_amount_to_str corrected

This commit is contained in:
moneroexamples 2017-01-11 22:55:55 +00:00
parent b4eb465d52
commit 667353ec11
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
{{#testnet}}
<div class="center">
<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">
<input type="submit" value="Search">
</form>

View File

@ -251,9 +251,9 @@ parse(const std::string& str, string format="%Y-%m-%d %H:%M:%S");
static
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