From: Bert Hubert Date: Sat, 15 Nov 2008 19:30:56 +0000 (+0000) Subject: make dnsreplay deal with 'the final few packets' so very small pcap files can be... X-Git-Tag: rec-3.2~254 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27b014bcc91450b44c4b0ea98b5d6b3e6b4c8448;p=pdns make dnsreplay deal with 'the final few packets' so very small pcap files can be analysed too git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1268 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index e0c06a1d4..a28e36818 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -70,7 +70,6 @@ namespace po = boost::program_options; po::variables_map g_vm; - const struct timeval operator*(float fact, const struct timeval& rhs) { // cout<<"In: "<(); g_rdSelector = g_vm["recursive"].as(); + g_quiet = g_vm["quiet"].as(); float speedup=g_vm["speedup"].as(); @@ -653,6 +660,9 @@ try mental_time= mental_time + speedup * (now-then); } out:; + sleep(1); + receiveFromReference(); + printStats(); } catch(exception& e) {