Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 13209:c8d949cf6b09
plugins: Switch to :get_option_period() for time range options
Improves readability ("1 day" vs 86400) and centralizes validation.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Jul 2023 20:49:33 +0200 |
parent | 13092:bc46cfe7c037 |
child | 13213:50324f66ca2a |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Jul 16 21:04:42 2023 +0200 +++ b/plugins/mod_csi_simple.lua Sun Jul 16 20:49:33 2023 +0200 @@ -13,7 +13,7 @@ local timer = require "prosody.util.timer"; local queue_size = module:get_option_number("csi_queue_size", 256); -local resume_delay = module:get_option_number("csi_resume_inactive_delay", 5); +local resume_delay = module:get_option_period("csi_resume_inactive_delay", 5); local important_payloads = module:get_option_set("csi_important_payloads", { });