Show
Ignore:
Timestamp:
04/29/06 18:54:11 (7 years ago)
Author:
ahu
Message:

push some implementation down from rec_channel.hh to rec_channel.cc (and win32_rec_channel.cc)
#ifdef out some things that we have no windows code for yet in rec_channel_rec.cc

Files:
1 modified

Legend:

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

    r789 r798  
    1414#include <fcntl.h> 
    1515#include <sys/time.h> 
     16#include "logger.hh" 
     17#ifndef WIN32 
    1618#include <sys/resource.h> 
    17 #include "logger.hh" 
     19#endif 
    1820 
    1921using namespace std; 
     
    101103} 
    102104 
     105#if 0  // broken! 
    103106uint32_t getQueryRate() 
    104107{ 
     
    111114    return 0; 
    112115} 
    113  
    114  
     116#endif  
     117 
     118#ifndef WIN32 
    115119static uint64_t getSysTimeMsec() 
    116120{ 
     
    126130  return(ru.ru_utime.tv_sec*1000 + ru.ru_utime.tv_usec/1000); 
    127131} 
    128  
     132#endif 
    129133 
    130134RecursorControlParser::RecursorControlParser() 
     
    173177  addGetStat("unreachables", &SyncRes::s_unreachables); 
    174178 
    175   addGetStat("query-rate", getQueryRate); 
    176  
     179#ifndef WIN32 
     180  //  addGetStat("query-rate", getQueryRate); 
    177181  addGetStat("user-msec", getUserTimeMsec); 
    178182  addGetStat("sys-msec", getSysTimeMsec); 
     183#endif 
    179184} 
    180185