diff --git a/src/send_packets.c b/src/send_packets.c index 399d97d2b..02bd045fd 100644 --- a/src/send_packets.c +++ b/src/send_packets.c @@ -343,7 +343,9 @@ send_packets(pcap_t *pcap, int cache_file_idx) if (!do_not_timestamp && !skip_length) get_packet_timestamp(&end); +#ifdef TIMESTAMP_TRACE add_timestamp_trace_entry(pktlen, &end, skip_length); +#endif /* * track the time of the "last packet sent". Again, because of OpenBSD * we have to do a memcpy rather then assignment. diff --git a/src/sleep.c b/src/sleep.c index 42223606f..15d217195 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -122,7 +122,7 @@ do_sleep(struct timeval *time, struct timeval *last, int len, int accurate, #ifdef DEBUG static struct timeval totalsleep = { 0, 0 }; #endif - static struct timespec nap = { 0, 0 }; //, delta_time = {0, 0}; + static struct timespec nap = { 0, 0 }; struct timeval nap_for; struct timespec nap_this_time; static u_int32_t send = 0; /* accellerator. # of packets to send w/o sleeping */