]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/sys.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 13 May 2019 12:54:27 +0000 (13:54 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 13 May 2019 12:54:27 +0000 (13:54 +0100)
etc/profile.d/sys.sh

index ace9c826d01bc10addcb841f97f77c5024fe79a2..03cc2c42a694ec32a9fb411c4f7d9b3aa5085491 100644 (file)
@@ -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
 }