aristocratos / bashtop

Linux/OSX/FreeBSD resource monitor
Apache License 2.0
10.76k stars 549 forks source link

[BUG] Temperature no longer displayed after CPU swap #208

Open wnz99 opened 3 years ago

wnz99 commented 3 years ago

Describe the bug

I've recently replace my CPU and bashtop is no longer displaying the temperature

Expected behavior

Temperature should be displayed.

Info (please complete the following information):

Additional context

contents of $HOME/.config/bashtop/error.log

I looks like bashtop is trying to read the wrong path, which was the one for the old CPU.

Correct one is : /sys/class/hwmon/hwmon2/temp1_input

New instance of bashtop version: 0.9.25 Pid: 6234
/home/whitenoise/anaconda3/lib/python3.7/site-packages/psutil/_pslinux.py:1222: RuntimeWarning: ignoring FileNotFoundError(2, 'No such file or directory') for file '/sys/class/hwmon/hwmon3/temp1_input'
  RuntimeWarning)
/home/whitenoise/anaconda3/lib/python3.7/site-packages/psutil/_pslinux.py:1222: RuntimeWarning: ignoring FileNotFoundError(2, 'No such file or directory') for file '/sys/class/hwmon/hwmon3/temp2_input'
  RuntimeWarning)