# HG changeset patch # User Link Mauve # Date 1769781851 -3600 # Node ID f16c0b5e4fa6651e8b2c11dd14dbeca898a3fa33 # Parent 5a76973e43048cbdd9c3c5a7891a03740c192150 mod_statistics: Switch to prosody.util.time.now() to get the current time diff -r 5a76973e4304 -r f16c0b5e4fa6 mod_statistics/stats.lib.lua --- a/mod_statistics/stats.lib.lua Fri Jan 30 15:04:03 2026 +0100 +++ b/mod_statistics/stats.lib.lua Fri Jan 30 15:04:11 2026 +0100 @@ -24,7 +24,7 @@ end local last_cpu_wall, last_cpu_clock; -local get_time = require "socket".gettime; +local get_time = require "prosody.util.time".now; local active_sessions, active_jids = {}, {}; local c2s_sessions, s2s_sessions; diff -r 5a76973e4304 -r f16c0b5e4fa6 mod_statistics/top.lib.lua --- 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"};