mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00: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,7 +56,8 @@ $WaitFullyConnected;
|
|||
|
||||
:if ($Count > 0) do={
|
||||
$SendNotification ([ $SymbolForNotification "warning-sign" ] . "Log Forwarding") \
|
||||
("The log on " . $Identity . " contains these " . $Count . " messages after " . \
|
||||
("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);
|
||||
|
|
Loading…
Reference in a new issue