aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-10-18 12:25:27 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-10-18 12:25:27 +0200
commit39815662f7a7c5ad3fb4996f72d85088229f555b (patch)
treedce9e1fcbc4f98e045971aa2e54a7549e57aa536 /check-health
parent9ce5d722b307bfcf76c892823d63328c4fd68590 (diff)
check-health: work with battery property
Seen on wAP R... No idea what this is.
Diffstat (limited to 'check-health')
-rw-r--r--check-health2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-health b/check-health
index 3b5c0de..6569783 100644
--- a/check-health
+++ b/check-health
@@ -18,7 +18,7 @@
:local CheckHealthCurrent [ / system health get ];
-:foreach Voltage in={ "psu1-voltage"; "psu2-voltage"; "voltage" } do={
+:foreach Voltage in={ "battery"; "psu1-voltage"; "psu2-voltage"; "voltage" } do={
:if ([ :typeof ($CheckHealthLast->$Voltage) ] = "num" && \
[ :typeof ($CheckHealthCurrent->$Voltage) ] = "num") do={
:if ($CheckHealthLast->$Voltage * (100 + $CheckHealthVoltagePercent) / 100 < $CheckHealthCurrent->$Voltage || \