aristocratos / aristocratos/bashtop

[BUG] Temperature no longer displayed after CPU swap

Open
#208 0 comments 0 reactions 1 assignee Claimed by @aristocratos View on GitHub
bug
Dominant language
Shell
Stars
11.1k
Forks
555
PR merge metrics
No merged PRs in 30d

Description

**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):**
- Bashtop version: 0.9.25
- (Linux) Linux distribution and version: Ubuntu 20.04.2 LTS
- (Linux) Data collection type (/proc or psutil): psutil and /proc
- Psutil version: `python3 -c "import psutil; print(psutil.version_info)"` (version 5.7.0 or above is required): (5, 8, 0)

**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)

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.