log-forward: use $MAX

This commit is contained in:
Christian Hesse
2024-01-30 07:10:51 +01:00
parent 777b2ba7a2
commit 07cdeadf43
+2 -3
View File
@@ -25,6 +25,7 @@
:global IfThenElse;
:global LogForwardFilterLogForwarding;
:global LogPrintExit2;
:global MAX;
:global ScriptLock;
:global SendNotification2;
:global SymbolForNotification;
@@ -91,7 +92,5 @@ $ScriptLock $0;
:set LogForwardLast ($MessageVal->".id");
} else={
:if ($LogForwardRateLimit > 0) do={
:set LogForwardRateLimit ($LogForwardRateLimit - 1);
}
:set LogForwardRateLimit [ $MAX 0 ($LogForwardRateLimit - 1) ];
}