]> git.hungrycats.org Git - bees/commitdiff
progress: calculate point along the range 000000..999999 to avoid 7-digit columns
authorZygo Blaxell <bees@furryterror.org>
Thu, 19 Jun 2025 02:19:03 +0000 (22:19 -0400)
committerZygo Blaxell <bees@furryterror.org>
Tue, 22 Jul 2025 01:21:54 +0000 (21:21 -0400)
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 <bees@furryterror.org>
src/bees-roots.cc

index 39ade7079511ab4a5be0d763dd875667023e34b9..8d85721d5127936e2401d927bf3a19fa8f70c4e8 100644 (file)
@@ -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::Content> {
                        Table::Text(magic.m_max_size == numeric_limits<uint64_t>::max() ? "max" : pretty(magic.m_max_size)),