comparison mod_host_status_check/mod_host_status_check.lua @ 6376:ff1499e348f8

mod_host_status_check: Switch to prosody.util.time.now() to get the current time
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 30 Jan 2026 15:03:50 +0100
parents 3d80f8dba886
children 040e4876dee3
comparison
equal deleted inserted replaced
6375:2468bd4ec025 6376:ff1499e348f8
1 local time = require "socket".gettime; 1 local time = require "prosody.util.time".now;
2 2
3 local heartbeats = module:shared("/*/host_status_check/heartbeats"); 3 local heartbeats = module:shared("/*/host_status_check/heartbeats");
4 local connection_events = module:shared("/*/host_status_check/connection_events"); 4 local connection_events = module:shared("/*/host_status_check/connection_events");
5 5
6 if prosody.hosts[module.host].type == "component" and module:get_option_string("component_module") == "component" then 6 if prosody.hosts[module.host].type == "component" and module:get_option_string("component_module") == "component" then