X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatistics.cci;h=5a31e361b2333f451494b836b5efae2fda3ddf0d;hb=941ca33da6ee01d78c07fa6b514de10da1ef3948;hp=d58a9bdf3569ea8265cd9590db1cc99bcc3b258b;hpb=69be773e2fe0ea5d60cb4a763bfffa673cfc417f;p=senf.git diff --git a/senf/Utils/Statistics.cci b/senf/Utils/Statistics.cci index d58a9bd..5a31e36 100644 --- a/senf/Utils/Statistics.cci +++ b/senf/Utils/Statistics.cci @@ -65,8 +65,10 @@ prefix_ senf::StatisticsBase::OutputEntry::OutputEntry(const OutputEntry& other) prefix_ void senf::StatisticsBase::OutputEntry::initDir() { - dir.add("list", senf::membind(&OutputEntry::consoleList, this)) - .doc("List all known connected targets. This list might not be complete."); + namespace fty = senf::console::factory; + + dir.add("list", fty::Command(&OutputEntry::consoleList, this) + .doc("List all known connected targets. This list might not be complete.") ); } prefix_ senf::StatisticsBase::OutputEntry & @@ -92,7 +94,7 @@ prefix_ void senf::StatisticsBase::OutputEntry::consoleList(std::ostream & os) // senf::StatisticsBase prefix_ senf::StatisticsBase::StatisticsBase() - : min_ (0.0f), avg_ (0.0f), max_ (0.0f), maxQueueLen_ (0u) + : min_ (0.0f), avg_ (0.0f), max_ (0.0f), dev_ (0.0f), maxQueueLen_ (0u) {} prefix_ senf::StatisticsBase::~StatisticsBase()