// The bitrate is measured over a simple 30-second sliding window.
#include <stdint.h>
-
+#include <sys/types.h>
+#include <atomic>
#include <deque>
#include <functional>
#include <string>
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;