cp -a ext/yahttp/ $DIRNAME/ext/
mkdir $DIRNAME/rrd
cp tools/rrd/{create,update,makegraphs,index.html} $DIRNAME/rrd
+cp dnslabeltext.rl $DIRNAME
cp pdns-recursor.init.d $DIRNAME
cp docs/pdns_recursor.1 docs/rec_control.1 $DIRNAME
cp configure-recursor $DIRNAME/configure
uint64_t newLat=(uint64_t)(spent*1000000);
newLat = min(newLat,(uint64_t)(g_networkTimeoutMsec*1000)); // outliers of several minutes exist..
g_stats.avgLatencyUsec=(1-1.0/g_latencyStatSize)*g_stats.avgLatencyUsec + (float)newLat/g_latencyStatSize;
-
+ // no worries, we do this for packet cache hits elsewhere
delete dc;
dc=0;
}
if(!SyncRes::s_nopacketcache && t_packetCache->getResponsePacket(question, g_now.tv_sec, &response, &age)) {
if(!g_quiet)
L<<Logger::Error<<t_id<< " question answered from packet cache from "<<fromaddr.toString()<<endl;
-
+
g_stats.packetCacheHits++;
SyncRes::s_queries++;
ageDNSPacket(response, age);