From 952128dc21f97514fdfe5da38d0c248c0b6cee32 Mon Sep 17 00:00:00 2001 From: erpalma Date: Tue, 16 Apr 2019 16:50:17 +0200 Subject: [PATCH] code formatting --- lenovo_fix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lenovo_fix.py b/lenovo_fix.py index 7e9f0cb..dee5a88 100755 --- a/lenovo_fix.py +++ b/lenovo_fix.py @@ -591,7 +591,9 @@ def power_thread(config, regs, exit_event): # set full performance mode only when load is greater than this threshold (~ at least 1 core full speed) performance_mode = cpu_usage > 100.0 / (cpu_count() * 1.25) # check again if we are on AC, since in the meantime we might have switched to BATTERY - if (power['method'] == 'dbus' and power['source'] == 'AC') or (power['method'] == 'polling' and not is_on_battery(config)): + if (power['method'] == 'dbus' and power['source'] == 'AC') or ( + power['method'] == 'polling' and not is_on_battery(config) + ): set_hwp('performance' if performance_mode else 'balance_performance') else: exit_event.wait(wait_t)