mirror of
https://github.com/sonertari/SSLproxy
synced 2024-10-31 21:20:21 +00:00
Use CLOCK_REALTIME to fix pcap timestamp issue (#78)
This commit is contained in:
parent
e5e0ad941b
commit
f009df6615
@ -301,7 +301,7 @@ logpkt_pcap_write(const uint8_t *pkt, size_t pktsz, int fd)
|
||||
pcap_rec_hdr_t rec_hdr;
|
||||
struct timespec tv;
|
||||
|
||||
if (clock_gettime(CLOCK_MONOTONIC, &tv) == -1)
|
||||
if (clock_gettime(CLOCK_REALTIME, &tv) == -1)
|
||||
{
|
||||
log_err_printf("Error getting current time: %s\n",
|
||||
strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user