aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_file_share.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-03 09:08:23 +0100
committerKim Alvefur <zash@zash.se>2021-12-03 09:08:23 +0100
commit9950712ba366c0b69c6b8fbc3d2d48c3749dcd07 (patch)
tree316d97a44604d72d6d70fda9cfd49b121f743a5a /plugins/mod_http_file_share.lua
parent8aa16eaec0ad9d66d3da9b453bf9159f8446ff2a (diff)
downloadprosody-9950712ba366c0b69c6b8fbc3d2d48c3749dcd07.tar.gz
prosody-9950712ba366c0b69c6b8fbc3d2d48c3749dcd07.zip
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.
Diffstat (limited to 'plugins/mod_http_file_share.lua')
-rw-r--r--plugins/mod_http_file_share.lua2
1 files changed, 1 insertions, 1 deletions
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));