mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-health: use $ScriptLock
This commit is contained in:
@ -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" && \
|
||||
|
Reference in New Issue
Block a user