You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is not sufficient to discriminate similar devices such as nvme drives, HDDs, GPUs.
A solution would be adding hwmon number such as nameX_label (ie: nvme0_composite, nvme1_composite) although I am not sure whether the hwmon enumeration order is guaranteed, or prefix with vendor/device IDs however this might be more complicated since driver filesystem interfaces may differ.
Thank you
Florent
The text was updated successfully, but these errors were encountered:
Hello,
On Linux, temperatures are collected by browsing /sys/class/hwmon/hwmon*/ but multiple hwmon may have same sensor name, ie :
-> 1st and 3rd lines have similar sensor tag values.
The issue comes from https://github.com/shirou/gopsutil/blob/master/sensors/sensors_linux.go#L94-L123 where SensorKey is composed of /sys/class/hwmon/hwmon*/name + _ + /sys/class/hwmon/hwmon*/temp_input :
gopsutil/sensors/sensors_linux.go
Line 103 in 904a5a4
A solution would be adding hwmon number such as nameX_label (ie: nvme0_composite, nvme1_composite) although I am not sure whether the hwmon enumeration order is guaranteed, or prefix with vendor/device IDs however this might be more complicated since driver filesystem interfaces may differ.
Thank you
Florent
The text was updated successfully, but these errors were encountered: