mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 20:34:27 +02:00
global-functions: $WaitForFile: respect minimum delay
This commit is contained in:
parent
52ec6b7ea1
commit
517ed7bf8c
1 changed files with 2 additions and 1 deletions
|
@ -1517,10 +1517,11 @@
|
|||
|
||||
:global CleanFilePath;
|
||||
:global EitherOr;
|
||||
:global MAX;
|
||||
|
||||
:set FileName [ $CleanFilePath $FileName ];
|
||||
:local I 1;
|
||||
:local Delay ([ :totime [ $EitherOr $WaitTime 2s ] ] / 10);
|
||||
:local Delay ([ :totime [ $MAX [ $EitherOr $WaitTime 2s ] 100ms ] ] / 10);
|
||||
|
||||
:while ([ :len [ /file/find where name=$FileName ] ] = 0) do={
|
||||
:if ($I >= 10) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue