summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-27 19:17:56 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-27 19:17:56 +0100
commit43510abba3cdf9f10a3e6da732ce9250b0048d3a (patch)
treed49e88dc0b372a6726ae940c445ec261c905874a /opentracker.c
parent8fb1c09df1540aa3fca1148bed6a08ffc3090669 (diff)
Forgot some g_now_seconds occurences
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/opentracker.c b/opentracker.c
index 6271b9e..065a1ea 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -40,7 +40,7 @@
40 40
41/* Globals */ 41/* Globals */
42uint32_t g_tracker_id; 42uint32_t g_tracker_id;
43volatile int g_opentracker_running = 1; 43_Atomic int g_opentracker_running = 1;
44int g_self_pipe[2]; 44int g_self_pipe[2];
45 45
46 46
@@ -297,12 +297,12 @@ static void *server_mainloop(void *args) {
297 while ((sock = mutex_workqueue_popresult(&iovec_entries, &iovector, &is_partial)) != -1) 297 while ((sock = mutex_workqueue_popresult(&iovec_entries, &iovector, &is_partial)) != -1)
298 http_sendiovecdata(sock, &ws, iovec_entries, iovector, is_partial); 298 http_sendiovecdata(sock, &ws, iovec_entries, iovector, is_partial);
299 299
300 if (g_now_seconds > next_timeout_check) { 300 if (time_now_seconds() > next_timeout_check) {
301 int cursor = 0; 301 int cursor = 0;
302 302
303 while ((sock = fdstate_next_expired(g_now_seconds, &cursor)) != -1) 303 while ((sock = fdstate_next_expired(time_now_seconds(), &cursor)) != -1)
304 handle_dead(sock); 304 handle_dead(sock);
305 next_timeout_check = g_now_seconds + OT_CLIENT_TIMEOUT_CHECKINTERVAL; 305 next_timeout_check = time_future_seconds(OT_CLIENT_TIMEOUT_CHECKINTERVAL);
306 } 306 }
307 307
308 livesync_ticker(); 308 livesync_ticker();