summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2024-06-26 18:12:56 +0200
committernicolargo <nicolashennion@gmail.com>2024-06-26 18:12:56 +0200
commite5d5351d3164d7ef98638ebf8778cefba013bec2 (patch)
treedeed3d159b85f830ab671cb2b30a43fc2c552688
parentbe89ee002576904ecf7fdcc475d3fcd87d59b684 (diff)
Add cpu model for CPU info (Raspberry PI 5)
-rw-r--r--glances/cpu_percent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/cpu_percent.py b/glances/cpu_percent.py
index 65bfa154..baa3b359 100644
--- a/glances/cpu_percent.py
+++ b/glances/cpu_percent.py
@@ -73,7 +73,7 @@ class CpuPercent:
pass
else:
for line in cpuinfo_file:
- if line.startswith('model name') or line.startswith('Model'):
+ if line.startswith('model name') or line.startswith('Model') or line.startswith('cpu model'):
ret = line.split(':')[1].strip()
break
return ret if ret else 'CPU'