Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processor name getting cut off #1917

Closed
HoodedDeath opened this issue Aug 11, 2021 · 1 comment
Closed

Processor name getting cut off #1917

HoodedDeath opened this issue Aug 11, 2021 · 1 comment
Labels
Milestone

Comments

@HoodedDeath
Copy link

Describe the bug
Processor name string is missing the 'r' at the end. Tested with a Ryzen 7 3700X and Ryzen 5 2600. 3700X shown as AMD Ryzen 7 3700X 8-Core Processo and 2600 shown as AMD Ryzen 5 2600 Six-Core Processo. Seems to not to be due to string length, but could be.

To Reproduce
Shouldn't need steps to reproduce

Expected behavior
Should show the processor string properly (example: Ryzen 7 3700X 8-Core Processor)

Screenshots
CPU Section of UI. Same between CLI and WebUI

Desktop (please complete the following information):

  • OS: GNU/Linux Arch
  • Glances Version Glances v3.2.1 with PsUtil v5.8.0
  • Glances logs file:
2021-08-11 01:09:19,801 -- INFO -- Start GlancesStandalone mode
2021-08-11 01:09:19,805 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2021-08-11 01:09:19,837 -- WARNING -- Sparklines module not found (No module named 'sparklines')
2021-08-11 01:09:19,972 -- ERROR -- docker plugin - Can not connect to Docker (Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2021-08-11 01:09:19,976 -- WARNING -- Missing Python Lib (No module named 'wifi'), Wifi plugin is disabled
2021-08-11 01:09:19,976 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
2021-08-11 01:09:19,980 -- WARNING -- Missing Python Lib (No module named 'pymdstat'), Raid plugin is disabled
2021-08-11 01:09:19,983 -- WARNING -- Missing Python Lib (No module named 'py3nvml'), Nvidia GPU plugin is disabled
2021-08-11 01:09:22,008 -- INFO -- Stop Glances (keypressed: 113)
  • Glances test:
Glances version 3.2.1 with PsUtil 5.8.0
=========================================================
alert         [OK]    0.00001s []
amps          [OK]    0.00000s key=name [{'key': 'name', 'name': 'Dropbox', 'result': None, 'refresh': 3.0, 'timer': 0.3438425064086914, 'count': 0, 'countmin': 1.0, 'countmax': No
cloud         [OK]    0.00000s {}
connections   [OK]    0.00000s {'LISTEN': 5, 'ESTABLISHED': 4, 'SYN_SENT': 1, 'SYN_RECV': 0, 'initiated': 1, 'terminated': 1}
core          [OK]    0.00038s {'phys': 8, 'log': 16}
cpu           [OK]    0.00000s {'total': 8.8, 'user': 5.4, 'nice': 0.0, 'system': 0.8, 'idle': 92.9, 'iowait': 0.7, 'irq': 0.1, 'softirq': 0.1, 'steal': 0.0, 'guest': 0.0, 'guest_n
diskio        [OK]    0.00000s key=disk_name [{'time_since_update': 1, 'disk_name': 'nvme0n1', 'read_count': 0, 'write_count': 0, 'read_bytes': 0, 'write_bytes': 0, 'alias': 'NVME 
docker        [OK]    0.00001s []
folders       [N/A]
fs            [OK]    0.00000s key=mnt_point [{'device_name': '/dev/mapper/main-root', 'fs_type': 'ext4', 'mnt_point': '/', 'size': 948981571584, 'used': 265458757632, 'free': 6352
gpu           [OK]    0.00000s []
help          [OK]    0.00000s None
ip            [OK]    0.00000s {'address': '192.168.50.2', 'mask': '255.255.255.0', 'mask_cidr': 24, 'gateway': '192.168.50.1'}
irq           [N/A]
load          [OK]    0.00000s {'min1': 2.88, 'min5': 2.57, 'min15': 2.49, 'cpucore': 16}
mem           [OK]    0.00000s {'total': 33566355456, 'available': 28373245952, 'percent': 15.5, 'used': 5193109504, 'free': 28373245952, 'active': 647135232, 'inactive': 545318092
memswap       [OK]    0.00000s {'total': 34359734272, 'used': 0, 'free': 34359734272, 'percent': 0.0, 'sin': 0, 'sout': 0}
network       [OK]    0.00031s key=interface_name [{'interface_name': 'lo', 'alias': 'Loopback', 'time_since_update': 0.12402963638305664, 'cumulative_rx': 44294710, 'rx': 0, 'cumu
now           [OK]    0.00001s 2021-08-11 01:12:31 MDT
percpu        [OK]    0.00000s key=cpu_number [{'key': 'cpu_number', 'cpu_number': 0, 'total': 71.0, 'user': 1.0, 'system': 0.0, 'idle': 29.0, 'nice': 0.0, 'iowait': 0.0, 'irq': 0.
ports         [OK]    0.00000s [{'host': '192.168.50.1', 'port': 0, 'description': 'DefaultGateway', 'refresh': 30, 'timeout': 3, 'status': 0.005551, 'rtt_warning': None, 'indice':
processcount  [OK]    0.00000s {'total': 452, 'running': 1, 'sleeping': 313, 'thread': 1828, 'pid_max': 0}
processlist   [OK]    0.00002s [{'ppid': 2219, 'pid': 2832, 'status': 'S', 'num_threads': 41, 'cmdline': ['/usr/lib/opera/opera', '--type=renderer', '--field-trial-handle=401027642
psutilversion [OK]    0.00000s (5, 8, 0)
quicklook     [OK]    0.00000s {'cpu': 8.8, 'percpu': [{'key': 'cpu_number', 'cpu_number': 0, 'total': 71.0, 'user': 1.0, 'system': 0.0, 'idle': 29.0, 'nice': 0.0, 'iowait': 0.0, '
raid          [N/A]
sensors       [OK]    0.00000s key=label [{'label': 'NVME Composite', 'value': 37, 'warning': 81, 'critical': 84, 'unit': 'C', 'type': 'temperature_core', 'key': 'label'}, {'label'
smart         [N/A]
system        [OK]    0.00000s {'os_name': 'Linux', 'hostname': 'Scarlet', 'platform': '64bit', 'linux_distro': 'Arch Linux', 'os_version': '5.13.9-arch1-1', 'hr_name': 'Arch Linux
uptime        [OK]    0.00001s {'seconds': 3775}
wifi          [OK]    0.00000s []

Additional context
Could just be string trimming, but the 2600 CPU string is a character shorter and still misses the 'r' at the end

nicolargo added a commit that referenced this issue Aug 14, 2021
@nicolargo nicolargo added the bug label Aug 14, 2021
@nicolargo nicolargo added this to the Glances 3.2.3 milestone Aug 14, 2021
@nicolargo
Copy link
Owner

Corrected in last commit in the develop branch. Will be release in Glances 3.2.3.

Thanks for the issue report @HoodedDeath !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants