X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=disk_space_estimator.h;h=73b392cc586e43c57c82fa4c6195d20d294c82bf;hb=b9feb66845bf24465b7671ac9ff7a52b88f6032b;hp=2acd4bee10f4113da92761d57d43ef003b47e4c6;hpb=cf7b9ee186d4ef8e5da0531b75854c97b821be44;p=nageru diff --git a/disk_space_estimator.h b/disk_space_estimator.h index 2acd4be..73b392c 100644 --- a/disk_space_estimator.h +++ b/disk_space_estimator.h @@ -11,6 +11,7 @@ #include #include +#include #include #include #include @@ -43,6 +44,10 @@ private: off_t size; }; std::deque measure_points; + uint64_t last_pts_reported = 0; + + // Metrics. + std::atomic metric_disk_free_bytes{-1}; }; extern DiskSpaceEstimator *global_disk_space_estimator;