]> git.sesse.net Git - nageru/blobdiff - disk_space_estimator.h
Release Nageru 1.7.2.
[nageru] / disk_space_estimator.h
index 2acd4bee10f4113da92761d57d43ef003b47e4c6..73b392cc586e43c57c82fa4c6195d20d294c82bf 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <stdint.h>
 #include <sys/types.h>
+#include <atomic>
 #include <deque>
 #include <functional>
 #include <string>
@@ -43,6 +44,10 @@ private:
                off_t size;
        };
        std::deque<MeasurePoint> measure_points;
+       uint64_t last_pts_reported = 0;
+
+       // Metrics.
+       std::atomic<int64_t> metric_disk_free_bytes{-1};
 };
 
 extern DiskSpaceEstimator *global_disk_space_estimator;