aboutsummaryrefslogtreecommitdiffstats
path: root/log-forward.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-01-30 07:10:51 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-30 07:10:51 +0100
commit07cdeadf43009a82be0f8cfc5e09fc450e0df26d (patch)
tree387ea5e4c5e017186f89c401be9368df077749e8 /log-forward.rsc
parent777b2ba7a2ba5e21cee0a1f0a899309ff82e65bb (diff)
log-forward: use $MAX
Diffstat (limited to 'log-forward.rsc')
-rw-r--r--log-forward.rsc5
1 files changed, 2 insertions, 3 deletions
diff --git a/log-forward.rsc b/log-forward.rsc
index a789f25..69fa1f1 100644
--- a/log-forward.rsc
+++ b/log-forward.rsc
@@ -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) ];
}