aboutsummaryrefslogtreecommitdiffstats
path: root/check-health
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-08-27 11:21:56 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-08-27 11:21:56 +0200
commit73dfb0c8eeafa7a5614500b8d8a8df08130bf4e6 (patch)
tree35296aeb2f5e6e8a8a86399c772c99f91392b610 /check-health
parent7afce17f70555e1dd07e4a3a54af789cc408bed9 (diff)
check-health: use $ScriptLock
Diffstat (limited to 'check-health')
-rw-r--r--check-health3
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" && \