From 22b6d26c57ee4df9c5382570b35c01127589c49d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 27 Apr 2023 18:13:50 +0200 Subject: [PATCH] BUG/MINOR: calltrace: fix 'now' being used in place of 'date' 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calltrace.c b/src/calltrace.c index f72e12116..3946b286e 100644 --- a/src/calltrace.c +++ b/src/calltrace.c @@ -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;