Skip to content

Commit

Permalink
fix bug with cpu freq. limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
simonchen committed Apr 7, 2024
1 parent 0fc77df commit c491c68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LenovoFanManagementApp/DellFanManagementGuiForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1247,23 +1247,23 @@ private void ApplyCpuFreqButtonClickedEventHandler(Object sender, EventArgs e)
p.Close();

bool success = int.TryParse(ACCpuFreq1TextBox.Text, out int ACCpuFreq1);
if (success)
//if (success)
{
_configurationStore.SetOption(ConfigurationOption.ACCpuFreq1, ACCpuFreq1);
}
success = int.TryParse(DCCpuFreq1TextBox.Text, out int DCCpuFreq1);
if (success)
//if (success)
{
_configurationStore.SetOption(ConfigurationOption.DCCpuFreq1, DCCpuFreq1);
}

success = int.TryParse(ACCpuFreqTextBox.Text, out int ACCpuFreq);
if (success)
//if (success)
{
_configurationStore.SetOption(ConfigurationOption.DCCpuFreq, ACCpuFreq);
_configurationStore.SetOption(ConfigurationOption.ACCpuFreq, ACCpuFreq);
}
success = int.TryParse(DCCpuFreqTextBox.Text, out int DCCpuFreq);
if (success)
//if (success)
{
_configurationStore.SetOption(ConfigurationOption.DCCpuFreq, DCCpuFreq);
}
Expand Down

0 comments on commit c491c68

Please sign in to comment.