From 39815662f7a7c5ad3fb4996f72d85088229f555b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 18 Oct 2019 12:25:27 +0200 Subject: check-health: work with battery property Seen on wAP R... No idea what this is. --- check-health | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check-health') 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 || \ -- cgit v1.2.3-54-g00ecf