diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 13:52:17 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-05 13:52:17 +0100 |
| commit | 47293a4f116e04a88b0797bafad0c98b4393b744 (patch) | |
| tree | b71d19aa8637382a6d3b453614a6a52a2c1b3245 /src/opentracker.c | |
| parent | 9a3a01643fc78bf544a1e6f5ca5c7529e2026b25 (diff) | |
Clamp every elapsed time span at zero, using a set of helper functions
Diffstat (limited to 'src/opentracker.c')
| -rw-r--r-- | src/opentracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opentracker.c b/src/opentracker.c index 60a6d8c..8de3fc1 100644 --- a/src/opentracker.c +++ b/src/opentracker.c | |||
| @@ -151,7 +151,7 @@ static void *server_mainloop(void *args) { | |||
| 151 | while ((sock = workqueue_popresult(&iovec_entries, &iovector, &is_partial)) != -1) | 151 | while ((sock = workqueue_popresult(&iovec_entries, &iovector, &is_partial)) != -1) |
| 152 | http_sendiovecdata(sock, &ws, iovec_entries, iovector, is_partial); | 152 | http_sendiovecdata(sock, &ws, iovec_entries, iovector, is_partial); |
| 153 | 153 | ||
| 154 | if (time_now_seconds() > next_timeout_check) { | 154 | if (time_is_past(next_timeout_check)) { |
| 155 | int cursor = 0; | 155 | int cursor = 0; |
| 156 | 156 | ||
| 157 | while ((sock = fdstate_next_expired(time_now_seconds(), &cursor)) != -1) | 157 | while ((sock = fdstate_next_expired(time_now_seconds(), &cursor)) != -1) |
