changeset 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 2468bd4ec025
children 032445730eaa
files mod_host_status_check/mod_host_status_check.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");