mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-19 09:08:58 +02:00
global-functions: $ScriptLock: break long lines
This commit is contained in:
parent
e53c31e9e6
commit
6db3355858
1 changed files with 5 additions and 2 deletions
|
@ -1278,12 +1278,15 @@
|
||||||
$AddTicket $Script $MyTicket;
|
$AddTicket $Script $MyTicket;
|
||||||
|
|
||||||
:local WaitCount 0;
|
:local WaitCount 0;
|
||||||
:while ($WaitMax > $WaitCount && ([ $IsFirstTicket $Script $MyTicket ] = false || [ $TicketCount $Script ] < [ $JobCount $Script ])) do={
|
:while ($WaitMax > $WaitCount && \
|
||||||
|
([ $IsFirstTicket $Script $MyTicket ] = false || \
|
||||||
|
[ $TicketCount $Script ] < [ $JobCount $Script ])) do={
|
||||||
:set WaitCount ($WaitCount + 1);
|
:set WaitCount ($WaitCount + 1);
|
||||||
:delay 100ms;
|
:delay 100ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ([ $IsFirstTicket $Script $MyTicket ] = true && [ $TicketCount $Script ] = [ $JobCount $Script ]) do={
|
:if ([ $IsFirstTicket $Script $MyTicket ] = true && \
|
||||||
|
[ $TicketCount $Script ] = [ $JobCount $Script ]) do={
|
||||||
$RemoveTicket $Script $MyTicket;
|
$RemoveTicket $Script $MyTicket;
|
||||||
$CleanupTickets $Script;
|
$CleanupTickets $Script;
|
||||||
:return true;
|
:return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue