summaryrefslogtreecommitdiffhomepage
path: root/statistics.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-26 13:01:19 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-26 13:01:19 +0200
commitaebe139d00b44684158edb3616da5c37b12db6d1 (patch)
treef37eaa7a59523f2e7db42875e65f2ca2714c0e9d /statistics.h
parent91073ca08f5f9582196712ae6753714f3333979f (diff)
Added stats output
Diffstat (limited to 'statistics.h')
-rw-r--r--statistics.h5
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