diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-02-15 17:10:30 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-02-15 17:10:30 +0000 |
commit | 9bae17a0bb56e92299ea4d7062c5594b60b0e544 (patch) | |
tree | 48e6758d062a655c0161fcc0c7ab89d51ae6fcda | |
parent | bdc573f17b711a0b27632ccb83629134132adfc1 (diff) | |
download | prosody-9bae17a0bb56e92299ea4d7062c5594b60b0e544.tar.gz prosody-9bae17a0bb56e92299ea4d7062c5594b60b0e544.zip |
mod_http_file_share: Persist total storage usage when it increases (fixes #1891)
-rw-r--r-- | plugins/mod_http_file_share.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 48972067..705420d0 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -224,6 +224,7 @@ function handle_slot_request(event) end total_storage_usage = total_storage_usage + filesize; + persist_stats:set(nil, "total", total_storage_usage); module:log("debug", "Total storage usage: %s / %s", B(total_storage_usage), B(total_storage_limit)); local cached_quota = quota_cache:get(uploader); |