From 73dfb0c8eeafa7a5614500b8d8a8df08130bf4e6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 27 Aug 2021 11:21:56 +0200 Subject: check-health: use $ScriptLock --- check-health | 3 +++ 1 file changed, 3 insertions(+) (limited to 'check-health') diff --git a/check-health b/check-health index ec89545..bf0e441 100644 --- a/check-health +++ b/check-health @@ -18,6 +18,7 @@ :global Identity; :global LogPrintExit2; +:global ScriptLock; :global SendNotification2; :global SymbolForNotification; @@ -36,6 +37,8 @@ :set CheckHealthTemperatureNotified [ :toarray "" ]; } +$ScriptLock $0; + :foreach Name,Voltage in=$CheckHealthCurrent do={ :if ($Name ~ "(battery|voltage)" && \ [ :typeof ($CheckHealthLast->$Name) ] = "num" && \ -- cgit v1.2.3-70-g09d2