]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1174] Observation fixed after rebase
authorTomek Mrugalski <tomek@isc.org>
Tue, 14 Jul 2020 13:18:34 +0000 (15:18 +0200)
committerTomek Mrugalski <tomek@isc.org>
Tue, 14 Jul 2020 13:37:51 +0000 (15:37 +0200)
src/lib/stats/observation.cc
src/lib/stats/observation.h

index 711df8874a0737f46fb320c6d8472828bc155bf5..2128f53a59b449e57a698dd6baf7798336c080dd 100644 (file)
@@ -24,7 +24,7 @@ Observation::default_max_sample_count_ = std::make_pair(true, 20);
 
 std::pair<bool, StatsDuration>
 Observation::default_max_sample_age_ =
-    std::make_pair(false, time_duration(0, 0, 0, 0));
+    std::make_pair(false, StatsDuration::zero());
 
 Observation::Observation(const std::string& name, const int64_t value) :
     name_(name), type_(STAT_INTEGER),
index f1c6583e48c395b8ee24908c890a59bc58a46e6c..068694f0006ce0f26c44180d9e5f2817937ad48b 100644 (file)
@@ -402,8 +402,7 @@ private:
     ///
     /// By default the MaxSampleCount is set to 20
     /// and MaxSampleAge is disabled
-    std::pair<bool, StatsDuration> max_sample_age_ = std::make_pair(false,
-        StatsDuration::zero());
+    static std::pair<bool, StatsDuration> default_max_sample_age_;
 
     /// @defgroup samples_storage Storage for supported observations
     ///