# HG changeset patch # User Kim Alvefur # Date 1638518903 -3600 # Node ID 121c0401f83e24abc380a6c0c08bf5d944bb6156 # Parent cbed7d8d8f356828d16036300424c0ff3bfbf2bf 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. diff -r cbed7d8d8f35 -r 121c0401f83e plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Fri Dec 03 09:05:41 2021 +0100 +++ b/plugins/mod_http_file_share.lua Fri Dec 03 09:08:23 2021 +0100 @@ -538,7 +538,7 @@ 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));