1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-01 13:23:28 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2025-06-18 22:19:03 -04:00
parent 1b8b7557b6
commit 5c0480ec59

View 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)),