global-functions: $RandomDelay: name the parameters

This commit is contained in:
Christian Hesse 2024-01-29 21:34:08 +01:00
parent 64abe7430a
commit e636d4194c

View file

@ -873,10 +873,13 @@
# delay a random amount of seconds # delay a random amount of seconds
:set RandomDelay do={ :set RandomDelay do={
:local Time [ :tonum $1 ];
:local Unit [ :tostr $2 ];
:global EitherOr; :global EitherOr;
:global GetRandomNumber; :global GetRandomNumber;
:delay ([ $GetRandomNumber $1 ] . [ $EitherOr $2 "s" ]); :delay ([ $GetRandomNumber $Time ] . [ $EitherOr $Unit "s" ]);
} }
# check for required RouterOS version # check for required RouterOS version