Show
Ignore:
Timestamp:
03/20/06 16:33:52 (7 years ago)
Author:
ahu
Message:

add servfail stats, make cachehits/misses unsigend

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/pdns_recursor.cc

    r602 r605  
    276276      pw.getHeader()->rcode=res; 
    277277      switch(res) { 
     278      case RCode::ServFail: 
     279        g_stats.servFails++; 
     280        break; 
    278281      case RCode::NXDomain: 
    279282        g_stats.nxDomains++; 
     
    524527 
    525528  if(now.tv_sec - last_prune > 60) {  
     529    DTime dt; 
     530    dt.setTimeval(now); 
    526531    RC.doPrune(); 
    527532    int pruned=0; 
     
    542547 
    543548    //    cerr<<"Pruned "<<pruned<<" records, left "<<SyncRes::s_negcache.size()<<"\n"; 
     549//    cout<<"Prune took "<<dt.udiff()<<"usec\n"; 
    544550    last_prune=time(0); 
    545551  }