diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-27 19:15:22 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-27 19:15:22 +0100 |
| commit | 8fb1c09df1540aa3fca1148bed6a08ffc3090669 (patch) | |
| tree | eb03f2a9f3eb8e074abc0533aac7f5ab7cd8926c /trackerlogic.c | |
| parent | df5557705764d5e8f904a31d549fc037f5b1cf47 (diff) | |
All OSes now do have a cheap monotonic clock, so no caching thread is needed. Also add some relative time helpers
Diffstat (limited to 'trackerlogic.c')
| -rw-r--r-- | trackerlogic.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
| 117 | } else | 117 | } else |
| 118 | clean_single_torrent(torrent); | 118 | clean_single_torrent(torrent); |
| 119 | 119 | ||
| 120 | torrent->peer_list6->base = g_now_minutes; | 120 | torrent->peer_list6->base = time_now_minutes(); |
| 121 | torrent->peer_list4->base = g_now_minutes; | 121 | torrent->peer_list4->base = time_now_minutes(); |
| 122 | 122 | ||
| 123 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; | 123 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; |
| 124 | 124 | ||
