Changeset 610
- Timestamp:
- 03/21/06 23:53:35 (7 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
pdns_recursor.cc (modified) (1 diff)
-
recursor_cache.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/pdns_recursor.cc
r609 r610 355 355 356 356 uint64_t newLat=(uint64_t)(spent*1000000); 357 g_stats.avgLatencyUsec=(1-0.0001)*g_stats.avgLatencyUsec + 0.0001*newLat; 357 if(newLat < 1000000) // outliers of several minutes exist.. 358 g_stats.avgLatencyUsec=(uint64_t)((1-0.0001)*g_stats.avgLatencyUsec + 0.0001*newLat); 358 359 delete dc; 359 360 } -
trunk/pdns/pdns/recursor_cache.cc
r592 r610 61 61 unsigned int ret=0; 62 62 for(cache_t::const_iterator i=d_cache.begin(); i!=d_cache.end(); ++i) { 63 ret+=i->d_ name.size();63 ret+=i->d_records.size(); 64 64 } 65 65 return ret;