Skip to content

Commit

Permalink
bugfix pstateStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Oct 1, 2024
1 parent 91f8b41 commit e1c0909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def get_power_control_info(self):
response['supportsCpuBoost'] = cpu_utils.supports_cpu_boost()
response['powerControlsEnabled'] = power_utils.power_controls_enabled()
pstate_status = cpu_utils.get_pstate_status()
response['pstateStatus'] = pstate_status
if pstate_status == 'passive' and device_utils.is_intel():
cpu_utils.set_pstate_active()
response['pstateStatus'] = 'active'
Expand Down

0 comments on commit e1c0909

Please sign in to comment.