From 48b7fbda9cd8331fc98cb92d30cef229323eae7c Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 20 Jan 2025 22:48:25 -0500 Subject: [PATCH] progress: adjust minimum thresholds for ETA to 10 seconds and 1 GiB of data 1% is a lot of data on a petabyte filesystem, and a long time to wait for an ETA. After 1 GiB we should have some idea of how fast we're reading the data. Increase the time to 10 seconds to avoid a nonsense result just after a scan starts. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index f7857b6..618e3e1 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1072,7 +1072,7 @@ BeesScanModeExtent::next_transid(const CrawlMap &crawl_map_unused) const bool finished = deferred_finished.second; if (finished) { // eta_stamp = "idle"; - } else if (time_so_far > 1 && bytenr_norm > 0.01) { + } else if (time_so_far > 10 && bytenr_offset > 1024 * 1024 * 1024) { const time_t eta_duration = time_so_far / bytenr_norm; const time_t eta_time = eta_duration + now; eta_stamp = strf_localtime(eta_time);