Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 1,343 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
int GetNumCores() { | int GetNumCores() { | ||||
return boost::thread::physical_concurrency(); | return boost::thread::physical_concurrency(); | ||||
} | } | ||||
std::string CopyrightHolders(const std::string &strPrefix) { | std::string CopyrightHolders(const std::string &strPrefix) { | ||||
return strPrefix + | return strPrefix + | ||||
strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION)); | strprintf(_(COPYRIGHT_HOLDERS), 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 39 Lines |