From: Bert Hubert Date: Thu, 14 Jul 2005 15:01:55 +0000 (+0000) Subject: improve sleeping X-Git-Tag: pdns-2.9.18~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dcfd248789ce34d70f80bbfe4640a1c342ff15c;p=thirdparty%2Fpdns.git improve sleeping git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@441 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index dca4dc7dcd..66b0482fe7 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -287,7 +287,7 @@ try dh->id=htons(qd.d_assignedID); } - if(lastsent.tv_sec) { + if(lastsent.tv_sec && (!(s_questions%25))) { double seconds=pr.d_pheader.ts.tv_sec - lastsent.tv_sec; double useconds=(pr.d_pheader.ts.tv_usec - lastsent.tv_usec); double factor=10;