MGR: if max_ncpus_pct is 0, show 100% in Advanced Preferences dialog.

This commit is contained in:
Charlie Fenton 2013-06-17 05:28:20 -07:00
parent 4f999c750f
commit 3ea6711d06
1 changed files with 1 additions and 1 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);
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);