summaryrefslogtreecommitdiffhomepage
path: root/statistics.h
diff options
context:
space:
mode:
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