mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $ScriptLock: use hex string for ticket
Does not matter what the ticket looks like, but using hex string it is not converted to number.
This commit is contained in:
parent
0b4c1861cf
commit
aad91d90ea
1 changed files with 2 additions and 2 deletions
|
@ -908,7 +908,7 @@
|
||||||
:local DoReturn $2;
|
:local DoReturn $2;
|
||||||
:local WaitMax ([ :tonum $3 ] * 10);
|
:local WaitMax ([ :tonum $3 ] * 10);
|
||||||
|
|
||||||
:global GetRandomNumber;
|
:global GetRandom20CharHex;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
|
||||||
|
@ -947,7 +947,7 @@
|
||||||
/ system script job remove [ find where script=$Script ];
|
/ system script job remove [ find where script=$Script ];
|
||||||
}
|
}
|
||||||
|
|
||||||
:local MyTicket [ $GetRandomNumber ];
|
:local MyTicket [ $GetRandom20CharHex ];
|
||||||
:set ($ScriptLockOrder->$Script) [ $AddTicket ($ScriptLockOrder->$Script) $MyTicket ];
|
:set ($ScriptLockOrder->$Script) [ $AddTicket ($ScriptLockOrder->$Script) $MyTicket ];
|
||||||
|
|
||||||
:local WaitCount 0;
|
:local WaitCount 0;
|
||||||
|
|
Loading…
Reference in a new issue