aristocratos / aristocratos/bashtop

"Check Temp" option : unable to set "true" and show CPU cores temp when using "psutil". Works on "/proc".

Open
#197 3 comments 1 reaction 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**
Unable to set "Check temp" to true ..it remains 9 times out 10 always on false

System is HP Microserver Gen8

**To Reproduce**

Switch "Use psutil" to "true
goto "Check temp" options
press left or right key or ENTER key
value doesn't change to "true" and cores cpu temp are not displayed (I see only empty spaces).
Switch "Use psutil" to false
oto "Check temp" options
press left or right key or ENTER key
value changes and temps are shown

**Expected behavior**
Temps should be displayed for both "psutil" and "/proc"

**Info (please complete the following information):**
- Bashtop version: 0.9.25
- (Linux) Linux distribution and version: Ubuntu 20.04
- (Linux) Data collection type (/proc or psutil): psutil
- Psutil version: `python3 -c "import psutil; print(psutil.version_info)"` (version 5.7.0 or above is required): (5, 7, 2)
- (OSX/FreeBSD) Os release version:
- Terminal used:
- Font used:
- Bash version, `bash --version` (version 4.4 or above is required): 5
- Locales: output of `locale -v`

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

If I may, this seems to occur again on ubuntu 20.04 and 0.9.25.

Output of sensors on my system:

```
fcmircea@hal9001:~$ sensors
tg3-pci-0300
Adapter: PCI adapter
temp1: +83.0°C (high = +100.0°C, crit = +110.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1: +8.3°C (crit = +31.3°C)

tg3-pci-0301
Adapter: PCI adapter
temp1: +83.0°C (high = +100.0°C, crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +57.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +53.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +57.0°C (high = +85.0°C, crit = +105.0°C)
Core 2: +50.0°C (high = +85.0°C, crit = +105.0°C)
Core 3: +55.0°C (high = +85.0°C, crit = +105.0°C)
```
Please note that when using "/proc", temperatures are indeed displayed.

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.