From: Nicolas Boisselier Date: Sun, 12 May 2019 22:25:35 +0000 (+0100) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=426223224bad490c9ec94bfdede62129d0153515;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index b7c15a9f..ace9c826 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -228,10 +228,9 @@ sys_cpu_load() { } sys_cpu_temperature() { + # Mac, others ( - # Mac cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max \ - # Others || 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