]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
also report fd usage in recursor
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 26 Nov 2015 14:23:04 +0000 (15:23 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 26 Nov 2015 16:06:06 +0000 (17:06 +0100)
pdns/rec_channel_rec.cc

index 42e27fcec457e33e4a3586ae315ef6546138088e..5689605f18cd353d247d8516d8465f78b55c30e0 100644 (file)
@@ -613,6 +613,7 @@ RecursorControlParser::RecursorControlParser()
 
   addGetStat("uptime", calculateUptime);
   addGetStat("real-memory-usage", boost::bind(getRealMemoryUsage, string()));
+  addGetStat("fd-usage", boost::bind(getOpenFileDescriptors, string()));  
 
   //  addGetStat("query-rate", getQueryRate);
   addGetStat("user-msec", getUserTimeMsec);