mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-14 15:08:39 +02:00
check-health: use $ScriptLock
This commit is contained in:
parent
7afce17f70
commit
73dfb0c8ee
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
:global Identity;
|
:global Identity;
|
||||||
|
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
|
||||||
|
@ -36,6 +37,8 @@
|
||||||
:set CheckHealthTemperatureNotified [ :toarray "" ];
|
:set CheckHealthTemperatureNotified [ :toarray "" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ScriptLock $0;
|
||||||
|
|
||||||
:foreach Name,Voltage in=$CheckHealthCurrent do={
|
:foreach Name,Voltage in=$CheckHealthCurrent do={
|
||||||
:if ($Name ~ "(battery|voltage)" && \
|
:if ($Name ~ "(battery|voltage)" && \
|
||||||
[ :typeof ($CheckHealthLast->$Name) ] = "num" && \
|
[ :typeof ($CheckHealthLast->$Name) ] = "num" && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue