tmux-plugins / tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
MIT License
444 stars 69 forks source link

No temperature on AMD Ryzen 1600X #78

Open DemonInTheCloset opened 2 years ago

DemonInTheCloset commented 2 years ago

Problem

AMD Ryzen 1600X sensors doesn't have a per core readout so the sed/awk script fails:

$ sensors
k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +56.6°C  
Tdie:         +36.6°C 

Proposed solution

Add a variable/option to use the Tdie readout instead.

In my case sensors | sed -n 's/Tdie:\s*+//p' is enough.

ctjhoa commented 2 years ago

Thanks for the report. I guess we could fallback on Tdie if no Tccd/Core are found in sensors output.