Showing 1 changed files with 3 additions and 1 deletions
+3 -1
monitoring.d/raspberrypi
... ...
@@ -74,7 +74,9 @@ function core_temp () {
74 74
 
75 75
 function core_alim () {
76 76
     eval $(/opt/vc/bin/vcgencmd measure_volts core)
77
-    test $volt == "1.2000V" || echo "$volt"
77
+    volt_fmt=${volt/\.}
78
+    volt_fmt=${volt_fmt/V}
79
+    test $volt_fmt -lt 12000 -o $volt_fmt -gt 15000 && echo "$volt"
78 80
 }
79 81
 
80 82
 function mem_pressure () {