Software /
code /
prosody
Changeset
13713:4a687745bb51 13.0
mod_http_file_share: Persist total storage usage when it increases (fixes #1891)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 15 Feb 2025 17:10:30 +0000 |
parents | 13711:12e0b61830c8 |
children | 13714:7205da981fc2 13715:edd006093533 |
files | plugins/mod_http_file_share.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Sat Feb 15 16:48:27 2025 +0000 +++ b/plugins/mod_http_file_share.lua Sat Feb 15 17:10:30 2025 +0000 @@ -224,6 +224,7 @@ 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);