mirror of https://github.com/BOINC/boinc.git
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:
parent
bb1aca612b
commit
ab41c0f0c5
|
@ -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);
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue