diff --git a/clientgui/DlgAdvPreferences.cpp b/clientgui/DlgAdvPreferences.cpp index a52b9d5853..c73ae3a715 100644 --- a/clientgui/DlgAdvPreferences.cpp +++ b/clientgui/DlgAdvPreferences.cpp @@ -254,7 +254,7 @@ void CDlgAdvPreferences::ReadPreferenceSettings() { buffer.Printf(wxT("%.2f"),prefs.cpu_scheduling_period_minutes); *m_txtProcSwitchEvery << buffer; // max cpus - buffer.Printf(wxT("%.2f"), prefs.max_ncpus_pct == 0. ? 100.0 : prefs.max_ncpus_pct); + buffer.Printf(wxT("%.2f"), prefs.max_ncpus_pct); *m_txtProcUseProcessors << buffer; //cpu limit buffer.Printf(wxT("%.2f"),prefs.cpu_usage_limit); diff --git a/clientgui/DlgAdvPreferencesBase.cpp b/clientgui/DlgAdvPreferencesBase.cpp index f8bb8530af..1cff7792f5 100644 --- a/clientgui/DlgAdvPreferencesBase.cpp +++ b/clientgui/DlgAdvPreferencesBase.cpp @@ -343,7 +343,7 @@ wxPanel* CDlgAdvPreferencesBase::createProcessorTab(wxNotebook* notebook) miscProcGridSizer->Add( m_txtProcUseProcessors, 0, wxALL, 1 ); /*xgettext:no-c-format*/ - m_staticText21 = new wxStaticText( processorTab, ID_DEFAULT, _("% of the processors"), wxDefaultPosition, wxDefaultSize, 0 ); + m_staticText21 = new wxStaticText( processorTab, ID_DEFAULT, _("% of the processors (0 means ignore this setting)"), wxDefaultPosition, wxDefaultSize, 0 ); miscProcGridSizer->Add( m_staticText21, 0, wxALL, 5 ); m_staticText22 = new wxStaticText( processorTab, ID_DEFAULT, _("Use at most"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );