From: Nicolas Boisselier Date: Mon, 13 May 2019 12:54:27 +0000 (+0100) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=32b60e658c09208bf18852a753f2847617aa42ea;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index ace9c826..03cc2c42 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 - ( - cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max \ - || cat /sys/class/thermal/thermal_zone*/temp - ) | awk '/^[0-9]/ {printf("%.1f\n",$1/1000)}' - #awk '{printf("%.1f\n",$1/1000)}' /sys/class/thermal/thermal_zone*/temp +# 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 #awk '{ count++; sum+=$1 } END {printf("%.1f",sum/count/1000)}' /sys/class/thermal/thermal_zone*/temp }