X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=disk_space_estimator.h;h=c5b63bfac22c25455bdf48e53ed61424f38c9853;hb=da648fc65da0b5f8e96ff39ce52bdd00fa29b5dc;hp=b585bc37b83ba2324f749599ebfeef70687d453c;hpb=b561d43a60201395f1354a585aa37670eda45883;p=nageru diff --git a/disk_space_estimator.h b/disk_space_estimator.h index b585bc3..c5b63bf 100644 --- a/disk_space_estimator.h +++ b/disk_space_estimator.h @@ -10,7 +10,8 @@ // The bitrate is measured over a simple 30-second sliding window. #include - +#include +#include #include #include #include @@ -43,6 +44,9 @@ private: off_t size; }; std::deque measure_points; + + // Metrics. + std::atomic metric_disk_free_bytes{-1}; }; extern DiskSpaceEstimator *global_disk_space_estimator;