From: Zygo Blaxell Date: Thu, 19 Jun 2025 02:19:03 +0000 (-0400) Subject: progress: calculate point along the range 000000..999999 to avoid 7-digit columns X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0480ec594028a6ce47432bf2824a658ee3eabf;p=bees 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 --- diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 39ade707..8d85721d 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)),