MINOR: time: remove useless variable copies in tv_update_date()
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Apr 2021 13:17:48 +0000 (15:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Apr 2021 21:47:01 +0000 (23:47 +0200)
commit70cb3026a8d76e7b9c32ce95c4e9b5f21f3e44da
treebee2d6e9ef9dca73eb61c7ff4107c3cbf0a053da
parentc4c80fb4eaf22b7aab6a9fd9d77f096a380f3e39
MINOR: time: remove useless variable copies in tv_update_date()

In the global_now loop, we used to set tmp_adj from adjusted, then
set update it from tmp_now, then set adjusted back to tmp_adj, and
finally set now from adjusted. This is a long and unneeded set of
moves resulting from years of code changes. Let's just set now
directly in the loop, stop using adjusted and remove tmp_adj.
src/time.c