From 5c0480ec594028a6ce47432bf2824a658ee3eabf Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Wed, 18 Jun 2025 22:19:03 -0400 Subject: [PATCH] progress: calculate point along the range 000000..999999 to avoid 7-digit columns With the "idle" tag moved out of the `point` column, a `point` value of 1000000 may become visible--and push the table one column to the right. 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 39ade70..8d85721 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1347,7 +1347,7 @@ BeesScanModeExtent::next_transid() } const auto &mma = mes.m_map.at(subvol); const auto mma_ratio = mes_sample_size_ok ? (mma.m_bytes / double(mes.m_total)) : 1.0; - const auto posn_text = Table::Text(astringprintf("%06d", int(floor(bytenr_norm * 1000000)))); + const auto posn_text = Table::Text(astringprintf("%06d", int(floor(bytenr_norm * 999999)))); const auto size_text = Table::Text( mes_sample_size_ok ? pretty(fs_size * mma_ratio) : "-"); eta.insert_row(Table::endpos, vector { Table::Text(magic.m_max_size == numeric_limits::max() ? "max" : pretty(magic.m_max_size)),