From 481ef1f89586848d1192b21641781e1597d67de4 Mon Sep 17 00:00:00 2001 From: mmbyday Date: Mon, 17 Dec 2018 21:04:16 -0800 Subject: mining: display max cpu thread count and warn about impact --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index c685c670..5ebaff50 100644 --- a/main.cpp +++ b/main.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include "clipboardAdapter.h" #include "filter.h" #include "oscursor.h" @@ -284,6 +285,7 @@ int main(int argc, char *argv[]) engine.rootContext()->setContextProperty("defaultAccountName", accountName); engine.rootContext()->setContextProperty("applicationDirectory", QApplication::applicationDirPath()); + engine.rootContext()->setContextProperty("numberMiningThreadsAvailable", QThread::idealThreadCount()); bool builtWithScanner = false; #ifdef WITH_SCANNER -- cgit v1.2.3