From e962e4329913d9c94ade61ff43deaa3c72952c8a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 13 May 2019 17:27:42 +0100 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 03cc2c42..d7ce1e5a 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -229,10 +229,10 @@ sys_cpu_load() { 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 } -- 2.47.3