aboutsummaryrefslogtreecommitdiff
path: root/src/emerge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emerge.cpp')
-rw-r--r--src/emerge.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emerge.cpp b/src/emerge.cpp
index 592b1bef7..0ad6ee29b 100644
--- a/src/emerge.cpp
+++ b/src/emerge.cpp
@@ -130,11 +130,13 @@ EmergeManager::EmergeManager(Server *server)
// If unspecified, leave a proc for the main thread and one for
// some other misc thread
- s16 nthreads = 0;
- if (!g_settings->getS16NoEx("num_emerge_threads", nthreads))
+ s16 nthreads;
+ g_settings->getS16NoEx("num_emerge_threads", nthreads);
+ if (nthreads == 0)
nthreads = Thread::getNumberOfProcessors() - 2;
if (nthreads < 1)
nthreads = 1;
+ verbosestream << "Using " << nthreads << " emerge threads." << std::endl;
m_qlimit_total = g_settings->getU16("emergequeue_limit_total");
if (!g_settings->getU16NoEx("emergequeue_limit_diskonly", m_qlimit_diskonly))