Software /
code /
prosody
Diff
plugins/mod_http_file_share.lua @ 11496:8bf632540197
mod_http_file_share: Include storage in prune time measurement
Maybe the original idea was that you would measure storage separately?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 31 Mar 2021 09:43:05 +0200 |
parent | 11495:6d3f84148729 |
child | 11499:a8cbbbb1f165 |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Sun Mar 28 15:57:15 2021 +0200 +++ b/plugins/mod_http_file_share.lua Wed Mar 31 09:43:05 2021 +0200 @@ -384,8 +384,8 @@ end local reaper_task = async.runner(function(boundary_time) + local prune_done = module:measure("prune", "times"); local iter, total = assert(uploads:find(nil, {["end"] = boundary_time; total = true})); - local prune_done = module:measure("prune", "times"); if total == 0 then module:log("info", "No expired uploaded files to prune");