Software /
code /
prosody
Changeset
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 |
parents | 11495:6d3f84148729 |
children | 11497:960674938665 |
files | plugins/mod_http_file_share.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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");