diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-26 13:01:19 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-26 13:01:19 +0200 |
commit | aebe139d00b44684158edb3616da5c37b12db6d1 (patch) | |
tree | f37eaa7a59523f2e7db42875e65f2ca2714c0e9d /statistics.h | |
parent | 91073ca08f5f9582196712ae6753714f3333979f (diff) |
Added stats output
Diffstat (limited to 'statistics.h')
-rw-r--r-- | statistics.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<Bin> 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 |