Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
// Must fall back to hardware_concurrency, which unfortunately counts | // Must fall back to hardware_concurrency, which unfortunately counts | ||||
// virtual cores. | // virtual cores. | ||||
return boost::thread::hardware_concurrency(); | return boost::thread::hardware_concurrency(); | ||||
#endif | #endif | ||||
} | } | ||||
std::string CopyrightHolders(const std::string &strPrefix) { | std::string CopyrightHolders(const std::string &strPrefix) { | ||||
std::string strCopyrightHolders = | return strPrefix + | ||||
strPrefix + | |||||
strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION)); | strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION)); | ||||
// Check for untranslated substitution to make sure Bitcoin ABC copyright | |||||
// is not removed by accident. | |||||
if (strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION) | |||||
.find("Bitcoin ABC") == std::string::npos) { | |||||
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin ABC developers"; | |||||
} | |||||
return strCopyrightHolders; | |||||
} | } | ||||
// Obtain the application startup time (used for uptime calculation) | // Obtain the application startup time (used for uptime calculation) | ||||
int64_t GetStartupTime() { | int64_t GetStartupTime() { | ||||
return nStartupTime; | return nStartupTime; | ||||
} | } |