From f1e291bc3623cf75f1cccb3a7d68ba08f9079ed0 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Sep 2020 18:28:55 +0800 Subject: [PATCH] Fix droped record timestamp error under 4.19+ kernel --- oaf/src/af_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oaf/src/af_utils.c b/oaf/src/af_utils.c index 8473a077..bfd9c908 100755 --- a/oaf/src/af_utils.c +++ b/oaf/src/af_utils.c @@ -10,7 +10,7 @@ u_int32_t af_get_timestamp_sec(void) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0) struct timespec64 ts; - ktime_get_ts64(&ts); + ktime_get_real_ts64(&ts); return (u_int32_t)ts.tv_sec; #else struct timespec ts;