# HG changeset patch # User Matthew Wild # Date 1739639430 0 # Node ID 4a687745bb51e962a11faa4fbda4a4f9bc41a5f6 # Parent 12e0b61830c8f3d0c6faf99b6c91332b54c08164 mod_http_file_share: Persist total storage usage when it increases (fixes #1891) diff -r 12e0b61830c8 -r 4a687745bb51 plugins/mod_http_file_share.lua --- 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);