From 9950712ba366c0b69c6b8fbc3d2d48c3749dcd07 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Dec 2021 09:08:23 +0100 Subject: mod_http_file_share: Recalculate total storage usage weekly instead of daily Before mod_cron this job ran less frequently than the upload removal job. Running them at the same frequency seems wasteful somehow, plus the total should not drift away from the true value that fast. --- plugins/mod_http_file_share.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index ce49bc26..dc488c9e 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -538,7 +538,7 @@ end if total_storage_limit then local summary_start = module:measure("summary", "times"); - module:daily("Global quota check", function() + module:weekly("Global quota check", function() local summary_done = summary_start(); local iter = assert(uploads:find(nil)); -- cgit v1.2.3