commit | 5345490b8e0a3c82587fd1ccf30244035cf0b1d5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue May 16 19:01:55 2023 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed May 17 09:33:54 2023 +0200 |
tree | 4e3eff978cdeec928b8fe6255de5f13c1d5c297f | |
parent | 8e978a094d24a7835790da6be6c94e38f9888026 [diff] |
MINOR: clock: provide a function to automatically adjust now_offset Right now there's no way to enforce a specific value of now_ms upon startup in order to compensate for the time it takes to load a config, specifically when dealing with the health check startup. For this we'd need to force the now_offset value to compensate for the last known value of the current date. This patch exposes a function to do exactly this.