]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove debugging output and some whitespace
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 15 Mar 2014 18:06:16 +0000 (19:06 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 15 Mar 2014 18:06:16 +0000 (19:06 +0100)
pdns/dnspcap.cc
pdns/dnsscope.cc

index c5effcc53838f09a173261980d7ff6d3a3be9429..cd85edd91488bc88226aee31c01122d95f6233b6 100644 (file)
@@ -132,19 +132,16 @@ ComboAddress PcapPacketReader::getDest() const
   return ret;
 }
 
-
 PcapPacketWriter::PcapPacketWriter(const string& fname, PcapPacketReader& ppr) : d_fname(fname), d_ppr(ppr)
 {
   d_fp=fopen(fname.c_str(),"w");
   if(!d_fp)
     unixDie("Unable to open file");
   
-  
   int flags=fcntl(fileno(d_fp),F_GETFL,0);
   fcntl(fileno(d_fp), F_SETFL,flags&(~O_NONBLOCK)); // bsd needs this in stdin (??)
 
   fwrite(&ppr.d_pfh, 1, sizeof(ppr.d_pfh), d_fp);
-  
 }
 
 void PcapPacketWriter::write()
index d493db3e482d6d38a8b9c5433bf32bfab85a55cc..9315325eeea577db320270912ebeb0e6f5927588 100644 (file)
@@ -204,11 +204,11 @@ try
     cout<<i->first<<"\t"<<i->second<<endl;
 
   uint32_t sum=0;
-  ofstream stats("stats");
+  //  ofstream stats("stats");
   uint32_t totpackets=0;
   double tottime=0;
   for(cumul_t::const_iterator i=cumul.begin(); i!=cumul.end(); ++i) {
-    stats<<i->first<<"\t"<<(sum+=i->second)<<"\n";
+    //    stats<<i->first<<"\t"<<(sum+=i->second)<<"\n";
     totpackets+=i->second;
     tottime+=i->first*i->second;
   }