From 17eba653ef0ef163bb6b8544caabe973328a6984 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 1 Aug 2025 17:50:56 +0200 Subject: [PATCH] typofix --- manyfold/cli/manyfold.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manyfold/cli/manyfold.sh b/manyfold/cli/manyfold.sh index 4fa7fa7..8879489 100755 --- a/manyfold/cli/manyfold.sh +++ b/manyfold/cli/manyfold.sh @@ -139,12 +139,12 @@ cleanup_big_files(){ } delete_big_files(){ - #./manyfold infinite 86400 cleanup_big_files /mnt/models 5 5 & # 5 days for files over 5MB (5 in 2025, 6 in 2026 e.g. ?) # check every day to delete files older than 5 days and >5mb (5mb in 2025, 6mb in 2026 e.g.) test -z "$NO_DELETEBIGFILES" && { - intervalSec=86400 # = 1 day + everySeconds=86400 # = 1 day maxMB=$(( $(date +%Y) - 2020 )) - $0 infinite 5 cleanup_big_files /mnt/models $intervalSec $maxMB & + maxDays=5 + $0 infinite $everySeconds cleanup_big_files /mnt/models $maxDays $maxMB & } }