fix cpu temp for amd (k10temp)

This commit is contained in:
Zoty 2026-06-24 11:45:49 -03:00
parent 9f4e80ebfc
commit 9a1e575cfc
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA

View file

@ -46,7 +46,7 @@ Singleton {
Process { Process {
id: _tempProc id: _tempProc
command: ["bash", "-c", "for d in /sys/class/hwmon/hwmon*/; do [ \"$(cat ${d}name 2>/dev/null)\" = 'coretemp' ] && awk '{print int($1/1000)}' \"${d}temp1_input\" 2>/dev/null && break; done"] command: ["bash", "-c", "for d in /sys/class/hwmon/hwmon*/; do name=$(cat ${d}name 2>/dev/null); if [ \"$name\" = 'coretemp' ]; then awk '{print int($1/1000)}' \"${d}temp1_input\" 2>/dev/null && break; elif [ \"$name\" = 'k10temp' ]; then awk '{print int($1/1000)}' \"${d}temp1_input\" 2>/dev/null && break; fi; done"]
stdout: SplitParser { stdout: SplitParser {
onRead: line => { onRead: line => {
const v = parseInt(line.trim()) const v = parseInt(line.trim())