mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 10:04:19 +02:00
global-functions: $RandomDelay: allow zero time, return immediately
This commit is contained in:
parent
e636d4194c
commit
16898ae997
|
@ -879,6 +879,10 @@
|
|||
:global EitherOr;
|
||||
:global GetRandomNumber;
|
||||
|
||||
:if ($Time = 0) do={
|
||||
:return false;
|
||||
}
|
||||
|
||||
:delay ([ $GetRandomNumber $Time ] . [ $EitherOr $Unit "s" ]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue