Skip to content

Commit

Permalink
Fix droped record timestamp error under 4.19+ kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 6, 2020
1 parent 5c444a5 commit f1e291b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oaf/src/af_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f1e291b

Please sign in to comment.