mirror of
https://github.com/nicolargo/glances.git
synced 2024-09-11 12:47:14 +03:00
Add cpu model for CPU info (Raspberry PI 5)
This commit is contained in:
parent
be89ee0025
commit
e5d5351d31
@ -73,7 +73,7 @@ class CpuPercent:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
for line in cpuinfo_file:
|
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()
|
ret = line.split(':')[1].strip()
|
||||||
break
|
break
|
||||||
return ret if ret else 'CPU'
|
return ret if ret else 'CPU'
|
||||||
|
Loading…
Reference in New Issue
Block a user