MGR: revert my changes 3ea6711 and 429c699: a value of 0 for max_ncpus_pct means "ignore", not "100%; added "(0 means ignore this setting)" to the Advanced Computing Preferences dialog.

This commit is contained in:
Charlie Fenton 2013-06-19 18:06:24 -07:00
parent bb1aca612b
commit ab41c0f0c5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 );