Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 1,245 Lines • ▼ Show 20 Lines | #endif | ||||
return true; | return true; | ||||
} | } | ||||
int GetNumCores() { | int GetNumCores() { | ||||
return std::thread::hardware_concurrency(); | return std::thread::hardware_concurrency(); | ||||
} | } | ||||
std::string CopyrightHolders(const std::string &strPrefix) { | std::string CopyrightHolders(const std::string &strPrefix) { | ||||
return strPrefix + | return strPrefix + strprintf(_(COPYRIGHT_HOLDERS).translated, | ||||
strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION); | COPYRIGHT_HOLDERS_SUBSTITUTION); | ||||
} | } | ||||
// 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; | ||||
} | } | ||||
fs::path AbsPathForConfigVal(const fs::path &path, bool net_specific) { | fs::path AbsPathForConfigVal(const fs::path &path, bool net_specific) { | ||||
Show All 38 Lines |