From d42d95bb8cadc5a5f28c57c9ae890aa4e1a1566a Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Tue, 26 Apr 2022 10:53:31 -0400 Subject: [PATCH] Fix scaling governor reading --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 6809f50..bf2d8d7 100644 --- a/main.py +++ b/main.py @@ -104,7 +104,7 @@ def status_cpu(cpu_number: int) -> bool: def read_scaling_governor_cpu(cpu_number: int) -> str: filepath = cpu_governor_scaling_path(cpu_number) - return read_from_sys(filepath, amount=-1).trim() + return read_from_sys(filepath, amount=-1).strip() def write_scaling_governor_cpu(cpu_number: int, governor: str): filepath = cpu_governor_scaling_path(cpu_number)