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 /ot_stats.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 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -739,7 +739,7 @@ void stats_deliver(int64_t sock, int tasktype) { mutex_workqueue_pushtask(sock, | |||
| 739 | 739 | ||
| 740 | static pthread_t thread_id; | 740 | static pthread_t thread_id; |
| 741 | void stats_init(void) { | 741 | void stats_init(void) { |
| 742 | ot_start_time = g_now_seconds; | 742 | ot_start_time = time_now_seconds(); |
| 743 | pthread_create(&thread_id, NULL, stats_worker, NULL); | 743 | pthread_create(&thread_id, NULL, stats_worker, NULL); |
| 744 | } | 744 | } |
| 745 | 745 | ||
