global-functions: $ScriptLock: fix second parameter

This broke with 1e8918fdaa5a30393e2004d1f5e4dff458936b67...

Fixes: https://github.com/eworm-de/routeros-scripts/issues/95
This commit is contained in:
Ilya Kulakov 2025-04-07 11:27:22 +02:00 committed by Christian Hesse
parent 2cc47f56b9
commit 27987a0d7c

View file

@ -1388,7 +1388,7 @@
# lock script against multiple invocation
:set ScriptLock do={
:local Script [ :tostr $1 ];
:local WaitMax ([ :tonum $3 ] * 10);
:local WaitMax ([ :tonum $2 ] * 10);
:global GetRandom20CharAlNum;
:global IfThenElse;