Commit 40e1b053 authored by Joanne Hugé's avatar Joanne Hugé

Fix another mistake regarding recv timestamps

parent 2e191aec
......@@ -153,17 +153,16 @@ packet_timestamps_t recv_udp_packet(int use_timestamps, int use_histograms, int6
struct timespec *stamp = (struct timespec *)CMSG_DATA(cmsg);
packet_ts.kernelspace_ts = ts_to_uint(*stamp);
clock_gettime(CLOCK_REALTIME, &ts);
packet_ts.userspace_exit_ts = ts_to_uint(ts);
if(use_histograms)
fill_histograms(&packet_ts, histograms);
}
}
}
if (use_timestamps) {
clock_gettime(CLOCK_REALTIME, &ts);
packet_ts.userspace_exit_ts = ts_to_uint(ts);
}
return packet_ts;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment