From 667353ec1134e3081ed7c85d24e78b57c30d2da8 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 11 Jan 2017 22:55:55 +0000 Subject: [PATCH] xmr_amount_to_str corrected --- src/templates/header.html | 2 +- src/tools.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/header.html b/src/templates/header.html index 864327e..b68b253 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -34,7 +34,7 @@ {{#testnet}}
-
diff --git a/src/tools.h b/src/tools.h index 952d5b2..686ccd0 100644 --- a/src/tools.h +++ b/src/tools.h @@ -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