mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $WaitForFile: use fewer steps
This commit is contained in:
@ -1520,10 +1520,10 @@
|
|||||||
|
|
||||||
:set FileName [ $CleanFilePath $FileName ];
|
:set FileName [ $CleanFilePath $FileName ];
|
||||||
:local I 1;
|
:local I 1;
|
||||||
:local Delay ([ :totime [ $EitherOr $WaitTime 2s ] ] / 20);
|
:local Delay ([ :totime [ $EitherOr $WaitTime 2s ] ] / 10);
|
||||||
|
|
||||||
:while ([ :len [ /file/find where name=$FileName ] ] = 0) do={
|
:while ([ :len [ /file/find where name=$FileName ] ] = 0) do={
|
||||||
:if ($I >= 20) do={
|
:if ($I >= 10) do={
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
:delay $Delay;
|
:delay $Delay;
|
||||||
|
Reference in New Issue
Block a user