]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/sys.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 12 May 2019 22:25:35 +0000 (23:25 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 12 May 2019 22:25:35 +0000 (23:25 +0100)
etc/profile.d/sys.sh

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