mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $RandomDelay: allow to specify unit in second argument
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user