]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: calltrace: fix 'now' being used in place of 'date'
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 16:13:50 +0000 (18:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 16:14:57 +0000 (18:14 +0200)
Since commit 28360dc ("MEDIUM: clock: force internal time to wrap early
after boot") we have a much clearer distinction between 'now' (the internal,
drifting clock) and 'date' (the wall clock time). The calltrace code was
using "now" instead of "date" since the value is displayed to humans.

No backport is needed.

src/calltrace.c

index f72e12116e590b1e578ce7dca913b87e657daaea..3946b286eee3660cdd3d264c797ed4fa76fbdbd0 100644 (file)
@@ -76,7 +76,7 @@ static int open_trace()
        if (!log)
                log = stderr;
 
-       now_ptr = &now;
+       now_ptr = &date;
        if (getenv("HAPROXY_TRACE_FAST") != NULL) {
                fast_time = 1;
                now_ptr = &trace_now;