diff mod_statistics/top.lib.lua @ 6379:f16c0b5e4fa6

mod_statistics: Switch to prosody.util.time.now() to get the current time
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 30 Jan 2026 15:04:11 +0100
parents 66bda434d476
children 94868c5217a2
line wrap: on
line diff
--- a/mod_statistics/top.lib.lua	Fri Jan 30 15:04:03 2026 +0100
+++ b/mod_statistics/top.lib.lua	Fri Jan 30 15:04:11 2026 +0100
@@ -2,7 +2,7 @@
 local it = require "util.iterators";
 local curses = require "curses";
 local stats = module:require "stats".stats;
-local time = require "socket".gettime;
+local time = require "prosody.util.time".now;
 
 local sessions_idle_after = 60;
 local stanza_names = {"message", "presence", "iq"};