Fix condition mistake

This commit is contained in:
Filip Rysavy 2021-12-06 16:13:00 +01:00
parent aca71c245e
commit 1c1f3c6ec1
No known key found for this signature in database
GPG Key ID: EA1F430401C92D99
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ do
# We always delete all files larger than MAX_KEEP_FILE_SIZE. # We always delete all files larger than MAX_KEEP_FILE_SIZE.
# We keep all files smaller than MAX_KEEP_FILE_SIZE when cache size is # We keep all files smaller than MAX_KEEP_FILE_SIZE when cache size is
# below MAX_CACHE_DIR_SIZE, then we delete also smaller files. # below MAX_CACHE_DIR_SIZE, then we delete also smaller files.
if (("$size" <= "$MAX_KEEP_FILE_SIZE" && "$total" < "$new_total")) if (("$size" <= "$MAX_KEEP_FILE_SIZE" && "$new_total" < "$MAX_CACHE_DIR_SIZE"))
then then
total=$new_total total=$new_total
continue continue