From aebe139d00b44684158edb3616da5c37b12db6d1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 26 Apr 2020 13:01:19 +0200 Subject: Added stats output --- statistics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'statistics.h') diff --git a/statistics.h b/statistics.h index c4fce93..7e4da7e 100644 --- a/statistics.h +++ b/statistics.h @@ -60,9 +60,11 @@ public: }; private: + bool mChanged{}; std::deque mBins; std::mutex mMutex; + void load(); void limit(); public: @@ -70,6 +72,9 @@ public: ~Statistics(); void count(size_t bytes_in, size_t bytes_out, bool error, bool ipv6, bool https); + void save(); + + std::string getValues(); }; // Serialization and Deserialization as free functions -- cgit v1.2.3