|
|
@ -1521,9 +1521,11 @@ void MainWindow::setupMiningTab() { |
|
|
|
auto combo = new QComboBox(tab); |
|
|
|
combo->setObjectName("genproclimit"); |
|
|
|
|
|
|
|
auto threadStr = tr("thread"); |
|
|
|
auto threadsStr = tr("threads"); |
|
|
|
// give options from 1 to hwc/2 , which should represent physical CPUs
|
|
|
|
for(int i=0; i < hwc/2; i++) { |
|
|
|
combo->insertItem(i, QString::number(i+1)); |
|
|
|
combo->insertItem(i, QString::number(i+1) % " " % (i+1==1 ? threadStr : threadsStr)); |
|
|
|
} |
|
|
|
|
|
|
|
QFont font; |
|
|
|