From 9bae17a0bb56e92299ea4d7062c5594b60b0e544 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 15 Feb 2025 17:10:30 +0000 Subject: mod_http_file_share: Persist total storage usage when it increases (fixes #1891) --- plugins/mod_http_file_share.lua | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3