Mercurial > prosody-modules
comparison mod_host_status_check/mod_host_status_check.lua @ 6387:040e4876dee3
mod_host_status_check: Use util.time instead of prosody.util.time, for 0.12 compatibility
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 01 Feb 2026 14:09:22 +0100 |
| parents | ff1499e348f8 |
| children |
comparison
equal
deleted
inserted
replaced
| 6386:547feb8181eb | 6387:040e4876dee3 |
|---|---|
| 1 local time = require "prosody.util.time".now; | 1 local time = require "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 |
