From ac0f6660be0ad87b23ecb7f371a4a737e1bf017f Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sun, 6 Mar 2022 15:20:17 +0100 Subject: [PATCH] Fixed: Bad indentation --- bpytop.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bpytop.py b/bpytop.py index 6f0e870..eff3704 100755 --- a/bpytop.py +++ b/bpytop.py @@ -972,8 +972,8 @@ def _get_key(cls): pass else: if input_key.startswith("\033[<35;"): #* Detected mouse move in mouse direct mode - cls.mouse_move.set() - cls.new.set() + cls.mouse_move.set() + cls.new.set() elif input_key.startswith("\033[<64;"): #* Detected mouse scroll up clean_key = "mouse_scroll_up" elif input_key.startswith("\033[<65;"): #* Detected mouse scroll down @@ -3197,9 +3197,9 @@ def _collect_temps(cls): except IndexError: break except Exception as e: - errlog.exception(f'{e}') - cls.got_sensors = False - CpuBox._calc_size() + errlog.exception(f'{e}') + cls.got_sensors = False + CpuBox._calc_size() else: try: @@ -3235,9 +3235,9 @@ def _collect_temps(cls): cls.cpu_temp_high = 60 cls.cpu_temp_crit = 80 except Exception as e: - errlog.exception(f'{e}') - cls.got_sensors = False - CpuBox._calc_size() + errlog.exception(f'{e}') + cls.got_sensors = False + CpuBox._calc_size() else: if not cores: cls.cpu_temp[0].append(temp) @@ -3894,7 +3894,7 @@ def create_tree(pid: int, tree: defaultdict, indent: str = "", inindent: str = " if search and not found: if cls.detailed and pid == cls.detailed_pid: - det_cpu = getinfo["cpu_percent"] + det_cpu = getinfo["cpu_percent"] if "username" in getinfo and isinstance(getinfo["username"], float): getinfo["username"] = "" if "cmdline" in getinfo and isinstance(getinfo["cmdline"], float): getinfo["cmdline"] = "" for value in [ name, str(pid), getinfo.get("username", ""), " ".join(getinfo.get("cmdline", "")) ]: @@ -4817,7 +4817,7 @@ def options(cls): elif key == "backspace" and len(input_val): input_val = input_val[:-1] elif key == "delete": - input_val = "" + input_val = "" elif isinstance(getattr(CONFIG, selected), str) and len(key) == 1: input_val += key elif isinstance(getattr(CONFIG, selected), int) and key.isdigit():