mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
log-forward: use $MAX
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogForwardFilterLogForwarding;
|
:global LogForwardFilterLogForwarding;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
:global MAX;
|
||||||
:global ScriptLock;
|
:global ScriptLock;
|
||||||
:global SendNotification2;
|
:global SendNotification2;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
@@ -91,7 +92,5 @@ $ScriptLock $0;
|
|||||||
|
|
||||||
:set LogForwardLast ($MessageVal->".id");
|
:set LogForwardLast ($MessageVal->".id");
|
||||||
} else={
|
} else={
|
||||||
:if ($LogForwardRateLimit > 0) do={
|
:set LogForwardRateLimit [ $MAX 0 ($LogForwardRateLimit - 1) ];
|
||||||
:set LogForwardRateLimit ($LogForwardRateLimit - 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user