diff options
author | Christian Hesse <mail@eworm.de> | 2024-04-29 17:55:48 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-04-29 18:00:24 +0200 |
commit | ec0b0f6f2db32052c42a252e818117bc25fb8200 (patch) | |
tree | 8c875e5d00a45a6ccd2af56e62f6207ffc281ad0 | |
parent | 67e42ba66a886b7d26f4903110ada8d4636853a4 (diff) |
global-functions: $WaitForFile: respect minimum delay
-rw-r--r-- | global-functions.rsc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/global-functions.rsc b/global-functions.rsc index 1c36e2a..9c009ae 100644 --- a/global-functions.rsc +++ b/global-functions.rsc @@ -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={ |