sys_cpu_temperature() {
# Mac, others
-# NB 13.05.19 (
-# NB 13.05.19 cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max \
-# NB 13.05.19 || cat /sys/class/thermal/thermal_zone*/temp
-# NB 13.05.19 ) | awk '/^[0-9]/ {printf("%.1f\n",$1/1000)}'
- awk '{printf("%.1f\n",$1/1000)}' /sys/class/thermal/thermal_zone*/temp
+ (
+ cat /sys/devices/platform/coretemp.0/hwmon/hwmon*/temp*_input \
+ || cat /sys/class/thermal/thermal_zone*/temp
+ ) | awk '/^[0-9]/ {printf("%.1f\n",$1/1000)}'
+# NB 13.05.19 awk '{printf("%.1f\n",$1/1000)}' /sys/class/thermal/thermal_zone*/temp
#awk '{ count++; sum+=$1 } END {printf("%.1f",sum/count/1000)}' /sys/class/thermal/thermal_zone*/temp
}