diff options
Diffstat (limited to 'statistics.h')
-rw-r--r-- | statistics.h | 4 |
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); |