Skip to content

Commit

Permalink
Fix DNS-OARC#111, fix DNS-OARC#116: Update pcap-thread to v2.0.0, rem…
Browse files Browse the repository at this point in the history
…ove debug code
  • Loading branch information
jelu committed Jan 23, 2017
1 parent 94f680a commit d088ffa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/pcap-thread
10 changes: 0 additions & 10 deletions src/pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,9 +1020,6 @@ Pcap_run(void)
exit(1);
}

/* TODO: Remove before release */
dsyslogf(LOG_INFO, "Timed run set to %lu.%lu, now %lu.%lu", finish_ts.tv_sec, finish_ts.tv_usec, start_ts.tv_sec, start_ts.tv_usec);

if ((err = pcap_thread_run(&pcap_thread))) {
dsyslogf(LOG_ERR, "unable to pcap thread run: %s", pcap_thread_strerr(err));
if (err == PCAP_THREAD_EPCAP) {
Expand All @@ -1043,13 +1040,6 @@ Pcap_run(void)
exit(1);
}

/* TODO: Remove before release */
{
struct timeval now = { 0, 0 };
gettimeofday(&now, 0);
dsyslogf(LOG_INFO, "Ran to %lu.%lu", now.tv_sec, now.tv_usec);
}

if ((err = pcap_thread_stats(&pcap_thread, _stats, 0))) {
dsyslogf(LOG_ERR, "unable to get pcap thread stats: %s", pcap_thread_strerr(err));
if (err == PCAP_THREAD_EPCAP) {
Expand Down

0 comments on commit d088ffa

Please sign in to comment.