]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Support for storing more than one samples
authorFranciszek Gorski <fagorski9@gmail.com>
Thu, 6 Jun 2019 17:28:30 +0000 (19:28 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 15 Jul 2019 12:32:54 +0000 (15:32 +0300)
src/lib/stats/observation.cc
src/lib/stats/observation.h

index badd1f86b59a92dbe23e82efab427150934babdd..582625a7e6ef5b13db19298bf97b9b149c8bcb33 100644 (file)
@@ -317,8 +317,7 @@ std::string Observation::typeToText(Type type) {
         tmp << "integer";
         break;
     case STAT_FLOAT:
-        tmp << "float";
-        break;
+        tmp << "float";        break;
     case STAT_DURATION:
         tmp << "duration";
         break;
index 0fa2b7f43956c44af138aa8aa95f85a5a599d27e..087eca91e0c5ad287b53e146058772db5951d311 100644 (file)
@@ -303,7 +303,7 @@ private:
     /// @brief Returns samples (internal version)
     ///
     /// @tparam SampleType type of samples (e.g. IntegerSample)
-    /// @tparam Storage type of storage (e.g. list<IntegerSample>)
+    /// @tparam StorageType type of storage (e.g. list<IntegerSample>)
     /// @param observation storage
     /// @param exp_type expected observation type (used for sanity checking)
     /// @throw InvalidStatType if observation type mismatches
@@ -332,6 +332,7 @@ private:
     void setMaxSampleCountInternal(StorageType& storage,
                                    uint32_t max_samples, Type exp_type);
 
+
     /// @brief Observation (statistic) name
     std::string name_;