Skip to content

Commit 9321669

Browse files
committed
Make getDefaultCores() static
1 parent 3742ae0 commit 9321669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstore/globals.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ std::vector<Path> getUserConfigFiles()
150150
return files;
151151
}
152152

153-
unsigned int Settings::getDefaultCores() const
153+
unsigned int Settings::getDefaultCores()
154154
{
155155
const unsigned int concurrency = std::max(1U, std::thread::hardware_concurrency());
156156
const unsigned int maxCPU = getMaxCPU();

src/libstore/include/nix/store/globals.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public:
7777

7878
Settings();
7979

80-
unsigned int getDefaultCores() const;
80+
static unsigned int getDefaultCores();
8181

8282
Path nixPrefix;
8383

0 commit comments

Comments
 (0)