summaryrefslogtreecommitdiffhomepage
path: root/statistics.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-07 14:07:13 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-07 14:07:13 +0100
commit63fc8e14be5e450df8ccc18fe76e02c5f0827660 (patch)
treed1e37837b277b75e0eb9289b41a47f5dc86b4360 /statistics.h
parent7feaf1a9d7fb09985b9b17cd48fd1aa8eb15d8b3 (diff)
Test statistics
Diffstat (limited to 'statistics.h')
-rw-r--r--statistics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/statistics.h b/statistics.h
index a8b4854..f2ebcd3 100644
--- a/statistics.h
+++ b/statistics.h
@@ -1,5 +1,7 @@
#pragma once
+#include "config.h"
+
#include "libreichwein/archive.h"
#include <cstdint>
@@ -63,12 +65,14 @@ private:
bool mChanged{};
std::deque<Bin> mBins;
std::mutex mMutex;
+ std::filesystem::path mPath;
void load();
void limit();
public:
Statistics();
+ Statistics(const std::filesystem::path& path);
~Statistics();
void count(size_t bytes_in, size_t bytes_out, bool error, bool ipv6, bool https);