diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-08-14 11:44:40 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-08-14 11:44:40 +0200 |
commit | ff4cfcd0c9acddf9ccddca1665e4e6bd65e03e13 (patch) | |
tree | 7919fb0d207427c67dc2901ee2db31712baada6c | |
parent | ed8cd9f8ad5b5109006ad0e72da735b38b64fcfb (diff) |
Processor name getting cut off #1917
-rw-r--r-- | glances/cpu_percent.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/cpu_percent.py b/glances/cpu_percent.py index 7f6db901..32306059 100644 --- a/glances/cpu_percent.py +++ b/glances/cpu_percent.py @@ -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'] |