mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $RandomDelay: allow to specify unit in second argument
This commit is contained in:
parent
39b7bddf49
commit
855399b2bc
|
@ -658,9 +658,10 @@
|
|||
|
||||
# delay a random amount of seconds
|
||||
:set RandomDelay do={
|
||||
:global EitherOr;
|
||||
:global GetRandomNumber;
|
||||
|
||||
:delay ([ $GetRandomNumber $1 ] . "s");
|
||||
:delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]);
|
||||
}
|
||||
|
||||
# check for required RouterOS version
|
||||
|
|
Loading…
Reference in a new issue