Processor name getting cut off #1917

This commit is contained in:
nicolargo 2021-08-14 11:44:40 +02:00
parent ed8cd9f8ad
commit ff4cfcd0c9
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class CpuPercent(object):
# Get the CPU name once from the /proc/cpuinfo file
# @TODO: Multisystem...
try:
self.cpu_info['cpu_name'] = open('/proc/cpuinfo', 'r').readlines()[4].split(':')[1][1:-2]
self.cpu_info['cpu_name'] = open('/proc/cpuinfo', 'r').readlines()[4].split(':')[1].strip()
except:
self.cpu_info['cpu_name'] = 'CPU'
return self.cpu_info['cpu_name']