check-health: work with battery property

Seen on wAP R... No idea what this is.
This commit is contained in:
Christian Hesse 2019-10-18 12:25:27 +02:00
parent 9ce5d722b3
commit 39815662f7

View file

@ -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 || \