From 8fb1c09df1540aa3fca1148bed6a08ffc3090669 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 27 Oct 2026 19:15:22 +0100 Subject: All OSes now do have a cheap monotonic clock, so no caching thread is needed. Also add some relative time helpers --- ot_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 45dc8db..c6af116 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -739,7 +739,7 @@ void stats_deliver(int64_t sock, int tasktype) { mutex_workqueue_pushtask(sock, static pthread_t thread_id; void stats_init(void) { - ot_start_time = g_now_seconds; + ot_start_time = time_now_seconds(); pthread_create(&thread_id, NULL, stats_worker, NULL); } -- cgit v1.3