From: Willy Tarreau Date: Thu, 27 Apr 2023 16:13:50 +0000 (+0200) Subject: BUG/MINOR: calltrace: fix 'now' being used in place of 'date' X-Git-Tag: v2.8-dev9~21 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=22b6d26c57ee4df9c5382570b35c01127589c49d;p=haproxy.git 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. --- 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;