diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-03-26 20:56:28 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-03-26 20:56:28 +0300 |
| commit | 98670263ea2d887eecca3a62cfcd0b5645cb87ab (patch) | |
| tree | 3369f87a98e5fe57a6c7054e6b07f796c197dffe | |
| parent | fae543d79e79f08475d931f7bccade65b74320bc (diff) | |
units/ib_file: Prevent removed file use on high load
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rw-r--r-- | units/ib_file.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/ib_file.sh b/units/ib_file.sh index c3aaf7e..2837587 100644 --- a/units/ib_file.sh +++ b/units/ib_file.sh @@ -14,7 +14,7 @@ then ib_ctime=$(date +%s) ib_mtime=$(stat -c %Y "${ib_file}") - if [ $((ib_ctime - ib_mtime)) -le ${caching_time} ] + if [ $((ib_ctime - ib_mtime)) -le $((caching_time - 10)) ] then rm -fr "${cache}/${ib_hash}.lock" return 0 |
