Merge pull request #4225

2fd9be1 simplewallet: correct number of human-readable months (rbrunner7)
This commit is contained in:
luigi1111 2018-08-22 20:52:43 -05:00
commit 3f662876e6
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -6483,7 +6483,7 @@ static std::string get_human_readable_timespan(std::chrono::seconds seconds)
if (ts < 3600 * 24 * 30.5) if (ts < 3600 * 24 * 30.5)
return std::to_string((uint64_t)(ts / (3600 * 24))) + tr(" days"); return std::to_string((uint64_t)(ts / (3600 * 24))) + tr(" days");
if (ts < 3600 * 24 * 365.25) 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"); return tr("a long time");
} }
//---------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------