diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-07-25 17:58:44 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-07-26 13:47:36 +0200 |
commit | 77c092ee5ede9a2642978b9874b3c17e88829fbf (patch) | |
tree | 3675a63c55718ef6ed0bde5a7635e109370ffbb0 /passt.c | |
parent | e5c37ba0f419fd6c46d11ee9ec909b3fa9d2aa2f (diff) | |
download | passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar.gz passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar.bz2 passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar.lz passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar.xz passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.tar.zst passt-77c092ee5ede9a2642978b9874b3c17e88829fbf.zip |
log: Fetch log times with CLOCK_MONOTONIC, not CLOCK_REALTIME
We report relative timestamps in logs, so we want to avoid jumps in
the system time.
Suggested-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.c')
-rw-r--r-- | passt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -207,7 +207,7 @@ int main(int argc, char **argv) struct timespec now; struct sigaction sa; - clock_gettime(CLOCK_REALTIME, &log_start); + clock_gettime(CLOCK_MONOTONIC, &log_start); arch_avx2_exec(argv); |