summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2022-03-06 15:20:17 +0100
committeraristocratos <gnmjpl@gmail.com>2022-03-06 15:20:17 +0100
commitac0f6660be0ad87b23ecb7f371a4a737e1bf017f (patch)
treed0bcc2090f9444727d144c9403e29c9497623074
parent9648fe57f196c3c7fa40c9342f0031bf980f7793 (diff)
Fixed: Bad indentationHEADmaster
-rwxr-xr-xbpytop.py20
1 files 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 @@ class Key:
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 @@ class CpuCollector(Collector):
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 @@ class CpuCollector(Collector):
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 @@ class ProcCollector(Collector):
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 @@ class Menu:
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():