mirror of https://github.com/BOINC/boinc.git
MGR: if max_ncpus_pct is 0, show 100% in Advanced Preferences dialog.
This commit is contained in:
parent
4f999c750f
commit
3ea6711d06
|
@ -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);
|
||||
buffer.Printf(wxT("%.2f"), prefs.max_ncpus_pct < 0.1 ? 100.0 : prefs.max_ncpus_pct);
|
||||
*m_txtProcUseProcessors << buffer;
|
||||
//cpu limit
|
||||
buffer.Printf(wxT("%.2f"),prefs.cpu_usage_limit);
|
||||
|
|
Loading…
Reference in New Issue