Don't hide the + sign on Intel CPU temp

This commit is contained in:
Kenneth Benzie 2024-04-05 23:04:56 +01:00
parent a4fe049859
commit 48f8514939

View File

@ -11,7 +11,7 @@ fi
if command -v sensors &> /dev/null; then
if sensors 'coretemp-isa-0000' &> /dev/null; then
function get_cpu_temp() {
sensors 'coretemp-isa-0000' | awk 'NR == 3 { print substr($4, 2) }'
sensors 'coretemp-isa-0000' | awk 'NR == 3 { print $4 }'
}
elif sensors 'k10temp-pci-00c3' &> /dev/null; then
function get_cpu_temp {