forked from firecracker-microvm/firecracker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix metrics timestamp using monotonic clock
The utc_timestamp_ms field that is reported by the metrics uses a CLOCK_MONOTONIC timestamp. The POSIX standard defines the monotonic clock as a clock with a fixed but undefined starting point. For linux, the starting point is usually set at boot. This commit replaces the clock with a CLOCK_REALTIME, which gives the interval from the UTC UNIX epoch. It also updates the changelog and adds a regression test. Signed-off-by: alindima <alindima@amazon.com>
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters