Changeset 798 for trunk/pdns/pdns/rec_channel_rec.cc
- Timestamp:
- 04/29/06 18:54:11 (7 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/rec_channel_rec.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/rec_channel_rec.cc
r789 r798 14 14 #include <fcntl.h> 15 15 #include <sys/time.h> 16 #include "logger.hh" 17 #ifndef WIN32 16 18 #include <sys/resource.h> 17 # include "logger.hh"19 #endif 18 20 19 21 using namespace std; … … 101 103 } 102 104 105 #if 0 // broken! 103 106 uint32_t getQueryRate() 104 107 { … … 111 114 return 0; 112 115 } 113 114 116 #endif 117 118 #ifndef WIN32 115 119 static uint64_t getSysTimeMsec() 116 120 { … … 126 130 return(ru.ru_utime.tv_sec*1000 + ru.ru_utime.tv_usec/1000); 127 131 } 128 132 #endif 129 133 130 134 RecursorControlParser::RecursorControlParser() … … 173 177 addGetStat("unreachables", &SyncRes::s_unreachables); 174 178 175 addGetStat("query-rate", getQueryRate); 176 179 #ifndef WIN32 180 // addGetStat("query-rate", getQueryRate); 177 181 addGetStat("user-msec", getUserTimeMsec); 178 182 addGetStat("sys-msec", getSysTimeMsec); 183 #endif 179 184 } 180 185