X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=disk_space_estimator.h;h=73b392cc586e43c57c82fa4c6195d20d294c82bf;hp=2acd4bee10f4113da92761d57d43ef003b47e4c6;hb=4e3c52ba57c4552a969e71ccdefd9941ce8d6290;hpb=cf7b9ee186d4ef8e5da0531b75854c97b821be44 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;