1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Make getDefaultCores() static

This commit is contained in:
Eelco Dolstra 2025-10-27 15:07:01 +01:00
parent 3742ae061e
commit 9321669353
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ std::vector<Path> getUserConfigFiles()
return files;
}
unsigned int Settings::getDefaultCores() const
unsigned int Settings::getDefaultCores()
{
const unsigned int concurrency = std::max(1U, std::thread::hardware_concurrency());
const unsigned int maxCPU = getMaxCPU();

View file

@ -77,7 +77,7 @@ public:
Settings();
unsigned int getDefaultCores() const;
static unsigned int getDefaultCores();
Path nixPrefix;