mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 20:34:27 +02:00
log-forward: improve wording for single message
This commit is contained in:
parent
211edb93c0
commit
4a85deb45c
1 changed files with 4 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
:global LogForwardLast;
|
||||
:global LogForwardRateLimit;
|
||||
|
||||
:global IfThenElse;
|
||||
:global LogPrintExit;
|
||||
:global MailServerIsUp;
|
||||
:global ScriptLock;
|
||||
|
@ -55,8 +56,9 @@ $WaitFullyConnected;
|
|||
|
||||
:if ($Count > 0) do={
|
||||
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
|
||||
("The log on " . $Identity . " contains these " . $Count . " messages after " . \
|
||||
[ / system resource get uptime ] . " uptime.\n" . $Messages);
|
||||
("The log on " . $Identity . " contains " . [ $IfThenElse ($Count = 1) \
|
||||
"this message" ("these " . $Count . " messages") ] . " after " . \
|
||||
[ / system resource get uptime ] . " uptime.\n" . $Messages);
|
||||
|
||||
:set LogForwardRateLimit ($LogForwardRateLimit + 10);
|
||||
:set LogForwardLast ($MessageVal->".id");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue