mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 08:44:32 +02:00
mod/notification-email: make sure the scheduler interval is never zero
This commit is contained in:
parent
b517b26517
commit
6f79eb996a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
$LogPrintExit2 warning $0 ("Flushing E-Mail messages from scheduler, but queue is empty.") false;
|
||||
}
|
||||
|
||||
/system/scheduler/set interval=($QueueLen . "m") [ find where name=$0 ];
|
||||
/system/scheduler/set interval=([ $EitherOr $QueueLen 1 ] . "m") [ find where name=$0 ];
|
||||
|
||||
:foreach Id,Message in=$EmailQueue do={
|
||||
:if ([ :typeof $Message ] = "array" ) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue