X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FStatistics.cci;h=6fa454b854a354ef9eaff5cd6f436510f1f878cb;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=0ed4fbd65631f396253cc5a090d066e8d2d3d8da;hpb=c9d8ba8de7801af854581eb9e175d7b4f19ece3d;p=senf.git diff --git a/senf/Utils/Statistics.cci b/senf/Utils/Statistics.cci index 0ed4fbd..6fa454b 100644 --- a/senf/Utils/Statistics.cci +++ b/senf/Utils/Statistics.cci @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -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 & @@ -168,14 +170,20 @@ senf::Collector::output(unsigned n) /////////////////////////////////////////////////////////////////////////// // senf::Statistics +prefix_ void senf::Statistics::operator()(unsigned n, float min, float avg, float max, + float dev) +{ + enter(n, min, avg, max, dev); +} + prefix_ void senf::Statistics::operator()(float min, float avg, float max, float dev) { - enter(min, avg, max, dev); + enter(1, min, avg, max, dev); } prefix_ void senf::Statistics::operator()(float value, float dev) { - enter(value, value, value, dev); + enter(1, value, value, value, dev); } prefix_ senf::StatisticsBase::OutputProxy