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 --- trackerlogic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index 1f38f07..aac4448 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -117,8 +117,8 @@ size_t add_peer_to_torrent_and_return_peers(PROTO_FLAG proto, struct ot_workstru } else clean_single_torrent(torrent); - torrent->peer_list6->base = g_now_minutes; - torrent->peer_list4->base = g_now_minutes; + torrent->peer_list6->base = time_now_minutes(); + torrent->peer_list4->base = time_now_minutes(); peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; -- cgit v1.3