Skip to content

Commit

Permalink
Add support for "Model" in output cpuinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
veldenb committed Dec 13, 2023
1 parent debd42e commit 3439310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moonlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def get_processor_name():
command = "cat /proc/cpuinfo"
all_info = check_output(command, shell=True).decode().strip()
for line in all_info.split("\n"):
if "model name" in line:
processor_name = re.sub(".*model name.*:", "", line, 1)
if "model name" in line or "Model" in line:
processor_name = re.sub(".*(model name|Model).*:", "", line, 1)

return processor_name.strip()

Expand Down

0 comments on commit 3439310

Please sign in to comment.