From 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 10 Jul 2026 11:15:52 +0100 Subject: Use saturating adds/subtracts when handling timestamps. --- modules/httpd_stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/httpd_stats.cpp') diff --git a/modules/httpd_stats.cpp b/modules/httpd_stats.cpp index 384bc218b..76f827b0a 100644 --- a/modules/httpd_stats.cpp +++ b/modules/httpd_stats.cpp @@ -391,7 +391,7 @@ namespace Stats // Minimum time since a user's last message unsigned long min_idle = params.getDuration("minidle"); - time_t maxlastmsg = ServerInstance->Time() - min_idle; + const auto maxlastmsg = Time::Ago(min_idle); if (min_idle) // We can only check idle times on local users -- cgit v1.3.1-10-gc9f91