Show
Ignore:
Timestamp:
06/21/05 20:34:17 (8 years ago)
Author:
ahu
Message:

improve statistics for the recursor, split out timeout and real errors, report on outgoing timeouts
clarify non-existent statistics w/o queries

Files:
1 modified

Legend:

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

    r413 r414  
    11/* 
    22    PowerDNS Versatile Database Driven Nameserver 
    3     Copyright (C) 2005  PowerDNS.COM BV 
     3    Copyright (C) 2003 - 2005  PowerDNS.COM BV 
    44 
    55    This program is free software; you can redistribute it and/or modify 
     
    360360    L<<Logger::Error<<", "<<(int)(SyncRes::s_throttledqueries*100.0/(SyncRes::s_outqueries+SyncRes::s_throttledqueries))<<"% throttled, " 
    361361     <<SyncRes::s_nodelegated<<" no-delegation drops"<<endl; 
    362     L<<Logger::Error<<"queries running: "<<MT->numProcesses()<<endl; 
    363   } 
     362    L<<Logger::Error<<"stats: "<<MT->numProcesses()<<" queries running, "<<SyncRes::s_outgoingtimeouts<<" outgoing timeouts"<<endl; 
     363  } 
     364  else if(statsWanted)  
     365    L<<Logger::Error<<"stats: no stats yet!"<<endl; 
     366 
    364367  statsWanted=false; 
    365368}