diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-02 20:00:41 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-07-02 20:01:04 +0200 |
commit | d7ada03b8a6d3258f7558f69f916517ddce36ac3 (patch) | |
tree | 49a2a5c8ee8dd643eb2d7e9add220d51f7ccb518 /src/miner.cpp | |
parent | 3203a0832adf72f4303c7ab1a7a6046a6dd14778 (diff) | |
parent | 47162673c79c757a9c038c4ddc41fb3022223bde (diff) |
Merge pull request #6361
4716267 Use real number of cores for default -par, ignore virtual cores (Wladimir J. van der Laan)
Diffstat (limited to 'src/miner.cpp')
-rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 2c5cba742c..ca32e9f7b3 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -546,7 +546,7 @@ void GenerateBitcoins(bool fGenerate, int nThreads, const CChainParams& chainpar if (Params().DefaultMinerThreads()) nThreads = Params().DefaultMinerThreads(); else - nThreads = boost::thread::hardware_concurrency(); + nThreads = GetNumCores(); } if (minerThreads != NULL) |