aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_file_share.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-11-30 10:14:17 +0000
committerMatthew Wild <mwild1@gmail.com>2023-11-30 10:14:17 +0000
commit42635373017bab50a000919617cc6510e0b5604a (patch)
tree2a7ac7d59d9e2609a9af1bb5c7071b0fa0b88d55 /plugins/mod_http_file_share.lua
parent8a38b5d0da79c6177ba4c2523e72505b3937df7c (diff)
downloadprosody-42635373017bab50a000919617cc6510e0b5604a.tar.gz
prosody-42635373017bab50a000919617cc6510e0b5604a.zip
luacheckrc, mod_http_file_share: Update for module API change (once->on_ready)
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 b00bf1f9..718b4d71 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -79,7 +79,7 @@ local measure_upload_cache_size = module:measure("upload_cache", "amount");
local measure_quota_cache_size = module:measure("quota_cache", "amount");
local measure_total_storage_usage = module:measure("total_storage", "amount", { unit = "bytes" });
-module:once(function ()
+module:on_ready(function ()
local total, err = persist_stats:get(nil, "total");
if not err then
total_storage_usage = tonumber(total) or 0;