Mercurial > prosody-modules
diff 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 |
line wrap: on
line diff
--- a/mod_host_status_check/mod_host_status_check.lua Fri Jan 30 15:03:44 2026 +0100 +++ b/mod_host_status_check/mod_host_status_check.lua Fri Jan 30 15:03:50 2026 +0100 @@ -1,4 +1,4 @@ -local time = require "socket".gettime; +local time = require "prosody.util.time".now; local heartbeats = module:shared("/*/host_status_check/heartbeats"); local connection_events = module:shared("/*/host_status_check/connection_events");
