scripts: maps: Assume percentages never hit 100.0%

This isn't true, especially for dbgbmap.py, 100% is very possible in
filesystems with small files. But by limiting padding to 99.9%, we avoid
the annoying wasted space caused by the rare but occasional 100.0%.
This commit is contained in:
Christopher Haster
2025-04-11 19:02:18 -05:00
parent eb4c4c612e
commit 97c2287177
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4588,7 +4588,7 @@ def main_(ring, disk, mroots=None, *,
lfs.cksum,
'' if lfs.ckgcksum() else '?'))
else:
title_ = ('bd %sx%s, %6s mdir, %6s btree, %6s data' % (
title_ = ('bd %sx%s, %5s mdir, %5s btree, %5s data' % (
lfs.block_size if lfs.block_size is not None else '?',
lfs.block_count if lfs.block_count is not None else '?',
'%.1f%%' % (100*mdir_count / max(len(bmap), 1)),