aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-22 20:52:43 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-22 20:52:43 -0500
commit3f662876e68a3ef6b9ca3e2a3aff10fbda8c3599 (patch)
tree1de11f7dbe4e888e93c2551a2070904688d9a2cd /src
parent4e6187faf36c6ffd2ccb89e822c16a34e46e76a9 (diff)
parent2fd9be1646e331b68e4ce4ffc221bd81e85f4eaa (diff)
downloadmonzero-core-3f662876e68a3ef6b9ca3e2a3aff10fbda8c3599.tar.gz
monzero-core-3f662876e68a3ef6b9ca3e2a3aff10fbda8c3599.tar.xz
monzero-core-3f662876e68a3ef6b9ca3e2a3aff10fbda8c3599.zip
Merge pull request #4225
2fd9be1 simplewallet: correct number of human-readable months (rbrunner7)
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 038605725..e0dbe96e7 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -6483,7 +6483,7 @@ static std::string get_human_readable_timespan(std::chrono::seconds seconds)
if (ts < 3600 * 24 * 30.5)
return std::to_string((uint64_t)(ts / (3600 * 24))) + tr(" days");
if (ts < 3600 * 24 * 365.25)
- return std::to_string((uint64_t)(ts / (3600 * 24 * 365.25))) + tr(" months");
+ return std::to_string((uint64_t)(ts / (3600 * 24 * 30.5))) + tr(" months");
return tr("a long time");
}
//----------------------------------------------------------------------------------------------------