Fix typos discovered by codespell (#343)

* Fix typos discovered by codespell

* Fix typos discovered by codespell

* Fix typo
pull/375/head
Christian Clauss 3 years ago committed by GitHub
parent d2b7472392
commit e846e66f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@
## v1.0.63 ## v1.0.63
* Added: Options for choosing temperature scale and readded support for negative celsius temps * Added: Options for choosing temperature scale and re-added support for negative celsius temps
* Changed: Cpu values above 0 will always register on the graphs * Changed: Cpu values above 0 will always register on the graphs
## v1.0.62 ## v1.0.62
@ -154,7 +154,7 @@
## v1.0.44 ## v1.0.44
* Added: Spread CPUs accross columns evenly if possible, by @ErwinJunge * Added: Spread CPUs across columns evenly if possible, by @ErwinJunge
* Added: Additional crash fixes for graph and swap toggles * Added: Additional crash fixes for graph and swap toggles
## v1.0.43 ## v1.0.43
@ -292,7 +292,7 @@
## v1.0.20 ## v1.0.20
* Release bump to fix pypi and source version missmatch * Release bump to fix pypi and source version mismatch
## v1.0.19 ## v1.0.19

@ -520,7 +520,7 @@ class Config:
self.info.append(f'Config file malformatted or missing, will be recreated on exit!') self.info.append(f'Config file malformatted or missing, will be recreated on exit!')
elif conf["version"] != VERSION: elif conf["version"] != VERSION:
self.recreate = True self.recreate = True
self.info.append(f'Config file version and bpytop version missmatch, will be recreated on exit!') self.info.append(f'Config file version and bpytop version mismatch, will be recreated on exit!')
for key in self.keys: for key in self.keys:
if key in conf.keys() and conf[key] != "_error_": if key in conf.keys() and conf[key] != "_error_":
setattr(self, key, conf[key]) setattr(self, key, conf[key])
@ -827,7 +827,7 @@ class Mv:
return f'\033[{x}B' return f'\033[{x}B'
save: str = "\033[s" #* Save cursor position save: str = "\033[s" #* Save cursor position
restore: str = "\033[u" #* Restore saved cursor postion restore: str = "\033[u" #* Restore saved cursor position
t = to t = to
r = right r = right
l = left l = left
@ -990,7 +990,7 @@ class Key:
clean_key = "mouse_click" clean_key = "mouse_click"
elif input_key == "\\": clean_key = "\\" #* Clean up "\" to not return escaped elif input_key == "\\": clean_key = "\\" #* Clean up "\" to not return escaped
else: else:
for code in cls.escape.keys(): #* Go trough dict of escape codes to get the cleaned key name for code in cls.escape.keys(): #* Go through dict of escape codes to get the cleaned key name
if input_key.lstrip("\033").startswith(code): if input_key.lstrip("\033").startswith(code):
clean_key = cls.escape[code] clean_key = cls.escape[code]
break break
@ -3701,7 +3701,7 @@ class ProcCollector(Collector):
@classmethod @classmethod
def _collect(cls): def _collect(cls):
'''List all processess with pid, name, arguments, threads, username, memory percent and cpu percent''' '''List all processes with pid, name, arguments, threads, username, memory percent and cpu percent'''
if not "proc" in Box.boxes: return if not "proc" in Box.boxes: return
out: Dict = {} out: Dict = {}
cls.det_cpu = 0.0 cls.det_cpu = 0.0
@ -3856,7 +3856,7 @@ class ProcCollector(Collector):
@classmethod @classmethod
def _tree(cls, sort_cmd, reverse: bool, proc_per_cpu: bool, search: List[str]): def _tree(cls, sort_cmd, reverse: bool, proc_per_cpu: bool, search: List[str]):
'''List all processess in a tree view with pid, name, threads, username, memory percent and cpu percent''' '''List all processes in a tree view with pid, name, threads, username, memory percent and cpu percent'''
out: Dict = {} out: Dict = {}
err: float = 0.0 err: float = 0.0
det_cpu: float = 0.0 det_cpu: float = 0.0
@ -4428,7 +4428,7 @@ class Menu:
'Kelvin, 0 = absolute zero, 1 degree change', 'Kelvin, 0 = absolute zero, 1 degree change',
'equals 1 degree change in Celsius.', 'equals 1 degree change in Celsius.',
'', '',
'Rankine, 0 = abosulte zero, 1 degree change', 'Rankine, 0 = absolute zero, 1 degree change',
'equals 1 degree change in Fahrenheit.'], 'equals 1 degree change in Fahrenheit.'],
"show_cpu_freq" : [ "show_cpu_freq" : [
'Show CPU frequency', 'Show CPU frequency',
@ -4483,7 +4483,7 @@ class Menu:
'100 percent in the io graphs.', '100 percent in the io graphs.',
'(10 MiB/s by default).', '(10 MiB/s by default).',
'', '',
'Format: "device:speed" seperate disks with a', 'Format: "device:speed" separate disks with a',
'comma ",".', 'comma ",".',
'', '',
'Example: "/dev/sda:100, /dev/sdb:20".'], 'Example: "/dev/sda:100, /dev/sdb:20".'],
@ -4518,7 +4518,7 @@ class Menu:
'with a comma ",".', 'with a comma ",".',
'Begin line with "exclude=" to change to exclude', 'Begin line with "exclude=" to change to exclude',
'filter.', 'filter.',
'Oterwise defaults to "most include" filter.', 'Otherwise defaults to "most include" filter.',
'', '',
'Example: disks_filter="exclude=/boot, /home/user"'], 'Example: disks_filter="exclude=/boot, /home/user"'],
}, },

Loading…
Cancel
Save