fix cpu temp for amd (k10temp)
This commit is contained in:
parent
9f4e80ebfc
commit
9a1e575cfc
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ Singleton {
|
|||
|
||||
Process {
|
||||
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 {
|
||||
onRead: line => {
|
||||
const v = parseInt(line.trim())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue