Changeset 935
- Timestamp:
- 12/28/06 00:00:18 (2 years ago)
- Files:
-
- trunk/pdns/pdns/docs/pdns.sgml (modified) (3 diffs)
- trunk/pdns/pdns/pdns_recursor.cc (modified) (3 diffs)
- trunk/pdns/pdns/rec_channel_rec.cc (modified) (2 diffs)
- trunk/pdns/pdns/syncres.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/docs/pdns.sgml
r923 r935 1394 1394 <listitem> 1395 1395 <para> 1396 Reported version can be changed, or removed - see the "version-string" setting. 1396 Reported version can be changed, or removed - see the "version-string" setting. 1397 1397 </para> 1398 1398 </listitem> … … 7001 7001 </varlistentry> 7002 7002 <varlistentry> 7003 <term>version</term> 7004 <listitem> 7005 <para> 7006 Print version of this binary. Useful for checking which version of the PowerDNS recursor is installed on a system. Available since 3.1.5. 7007 </para> 7008 </listitem> 7009 </varlistentry> 7010 <varlistentry> 7003 7011 <term>version-string</term> 7004 7012 <listitem> … … 7254 7262 unauthorized-udp number of UDP questions denied because of allow-from restrictions 7255 7263 unexpected-packets number of answers from remote servers that were unexpected (might point to spoofing) 7256 user-msec number of CPU milliseconds spent in 'user' mode 7264 uptime number of seconds process has been running (since 3.1.5) 7265 user-msec number of CPU milliseconds spent in 'user' mode 7257 7266 </screen> 7258 7267 In the <filename>rrd/</filename> subdirectory a number of rrdtool scripts is provided to make nice trunk/pdns/pdns/pdns_recursor.cc
r934 r935 1741 1741 int main(int argc, char **argv) 1742 1742 { 1743 g_stats.startupTime=time(0); 1743 1744 reportBasicTypes(); 1744 1745 … … 1807 1808 1808 1809 ::arg().setCmd("help","Provide a helpful message"); 1810 ::arg().setCmd("version","Print version string ("VERSION")"); 1809 1811 ::arg().setCmd("config","Output blank configuration"); 1810 1812 L.toConsole(Logger::Info); … … 1824 1826 cerr<<"syntax:"<<endl<<endl; 1825 1827 cerr<<::arg().helpstring(::arg()["help"])<<endl; 1828 exit(99); 1829 } 1830 if(::arg().mustDo("version")) { 1831 cerr<<"version: "VERSION<<endl; 1826 1832 exit(99); 1827 1833 } trunk/pdns/pdns/rec_channel_rec.cc
r932 r935 135 135 #endif 136 136 137 static uint64_t calculateUptime() 138 { 139 return time(0) - g_stats.startupTime; 140 } 141 137 142 static string doCurrentQueries() 138 143 { … … 214 219 addGetStat("chain-resends", &g_stats.chainResends); 215 220 221 addGetStat("uptime", calculateUptime); 222 216 223 #ifndef WIN32 217 224 // addGetStat("query-rate", getQueryRate); trunk/pdns/pdns/syncres.hh
r933 r935 480 480 uint64_t shunted; 481 481 uint64_t noShuntCNAME, noShuntExpired, noShuntSize, noShuntNoMatch, noShuntWrongType, noShuntWrongQuestion; 482 482 time_t startupTime; 483 483 484 484 typedef vector<ComboAddress> remotes_t;