diff options
author | Christian Hesse <mail@eworm.de> | 2021-08-27 11:21:56 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-08-27 11:21:56 +0200 |
commit | 73dfb0c8eeafa7a5614500b8d8a8df08130bf4e6 (patch) | |
tree | 35296aeb2f5e6e8a8a86399c772c99f91392b610 | |
parent | 7afce17f70555e1dd07e4a3a54af789cc408bed9 (diff) |
check-health: use $ScriptLock
-rw-r--r-- | check-health | 3 |
1 files changed, 3 insertions, 0 deletions
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" && \ |