CLEANUP: time: use __tv_to_ms() in tv_update_date() instead of open-coding
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Apr 2021 14:03:21 +0000 (16:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Apr 2021 16:03:06 +0000 (18:03 +0200)
commit1f9e11e7f0a7c5778ddeae51f10e80aa3c06d7a3
tree4e21b746d599733bc6b3d2ef17d10abf8dc9a660
parent4d01f3dcdc81465e4a3712642cb9ba4148030049
CLEANUP: time: use __tv_to_ms() in tv_update_date() instead of open-coding

Instead of calculating the current date in milliseconds by hand, let's
use __tv_to_ms() which was made exactly for this purpose.
src/time.c