]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: report the correct start date in "show info"
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Apr 2023 13:57:18 +0000 (15:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Apr 2023 14:08:08 +0000 (16:08 +0200)
commit7222db7b849ae80e2bfb573e2ef462d9b29406a2
tree590ddd3be0f685c69f6b3f14d0ac412ca71754ba
parent2ebac6a3207188944404f02f2c03ec5bcba16c08
BUG/MINOR: stats: report the correct start date in "show info"

The "show info" help for "Start_time_sec" says "Start time in seconds"
so it's definitely the start date in human format, not the internal one
that is solely used to compute uptime. Since commit 28360dc ("MEDIUM:
clock: force internal time to wrap early after boot"), both are split
apart since the start time takes into account the offset needed to cause
the early wraparound, so we must only use start_date here.

No backport is needed.
src/stats.c