]> granicus.if.org Git - pdns/commitdiff
improve sleeping
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 14 Jul 2005 15:01:55 +0000 (15:01 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 14 Jul 2005 15:01:55 +0000 (15:01 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@441 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsreplay.cc

index dca4dc7dcdc35b9faff9f305be5170d961be26f6..66b0482fe7e9c9c468792256e2452d703fcae8e1 100644 (file)
@@ -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;