]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Updated (and made use of) stub_StatHist
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 15 Dec 2011 07:01:07 +0000 (08:01 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 15 Dec 2011 07:01:07 +0000 (08:01 +0100)
src/Makefile.am
src/StatHist.h
src/tests/stub_StatHist.cc

index 3f1ee799211495741610cfef349296652419536c..7c3ffabe305d1739eadbd2faf43f7cdfa33845ab 100644 (file)
@@ -1088,7 +1088,6 @@ tests_testHttpReply_SOURCES=\
        StatCounters.h \
        StatCounters.cc \
        StatHist.h \
-       StatHist.cc \
        tests/stub_StatHist.cc \
        tests/stub_store.cc \
        tests/stub_store_stats.cc \
index 9e56a2de09059a64e8261334be9f80b05636343c..0b6ce1d05a4e51376294c895e436882302ad6c25 100644 (file)
@@ -101,7 +101,6 @@ protected:
 };
 
 /* StatHist */
-void statHistCount(StatHist * H, double val);
 double statHistDeltaMedian(const StatHist & A, const StatHist & B);
 double statHistDeltaPctile(const StatHist & A, const StatHist & B, double pctile);
 StatHistBinDumper statHistEnumDumper;
index 07f1b4cd3c21cc6173beac25d22a92f0d9c35af7..b75787cb254fd72acbf66a2d410329e13de0f8ed 100644 (file)
@@ -1,10 +1,24 @@
-#include "squid.h"
-
-// for StatHist definitions
+#include "config.h"
+#include "STUB.h"
 #include "StatHist.h"
 
+#define STUB_API "StatHist.cc"
+
+void
+StatHist::init(int capacity_, hbase_f * val_in_, hbase_f * val_out_, double min_, double max_)
+{}
+
+StatHist::~StatHist()
+{}
+
+void
+StatHist::enumInit(int last_enum)
+{}
+
+void
+StatHist::count(double val)
+{}
+
 void
-statHistEnumInit(StatHist * H, int last_enum)
-{
-//NO-OP    fatal("statHistEnumInit: Not implemented");
-}
+StatHist::dump(StoreEntry * sentry, StatHistBinDumper * bd) const
+{}