Skip to content

Commit

Permalink
fix cpufreq governors spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Jan 9, 2024
1 parent 2598277 commit 819be53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions olaf/common/cpufreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_cpufreq(value: int):

def get_cpufreq_gov() -> str:
"""
Get the current cpu governor; ether ``"performace"`` or ``"powesave"``.
Get the current cpu governor; ether ``"performance"`` or ``"powersave"``.
Returns
-------
Expand All @@ -69,13 +69,13 @@ def set_cpufreq_gov(cpufreq_gov: str):
Parameters
-------
cpufreq_gov: CpuGovenor
The CPU governor to change to. Must be ``"performace"`` or ``"powesave"``
The CPU governor to change to. Must be ``"performance"`` or ``"powersave"``
"""

if geteuid() != 0: # not running as root
logger.warning("cannot set cpufreq governor, not running at root")
return
if cpufreq_gov not in ["performace", "powesave"]:
if cpufreq_gov not in ["performance", "powersave"]:
logger.warning(f"invalid cpufreq governor of {cpufreq_gov}")
return

Expand Down

0 comments on commit 819be53

Please sign in to comment.