Skip to content

style(human): match moria's run-stats footer format - #22

Merged
nmatt0 merged 1 commit into
masterfrom
style/run-stats-footer
Sep 15, 2026
Merged

nmatt0 merged 1 commit into
masterfrom
style/run-stats-footer

Conversation

@nmatt0

@nmatt0 nmatt0 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

Normalize mithril's plain-text run-stats footer to match moria's, so the two
tools print identical run stats.

Change

The old single line:

Scanned 117 files (42558958 bytes) in 0.203 s

is replaced with moria's aligned three-line block, upscaling the byte total to
KB/MB/GB/TB (integer bytes, one decimal thereafter):

Files analyzed:  117
Bytes analyzed:  40.6 MB
Elapsed:         0.066 s

Uses the same B -> KB -> MB -> GB -> TB upscale loop and the same label
alignment as moria. JSON output is unaffected (the footer is human-view only).

Testing

  • Verified byte scaling across ranges: 12 B (integer), 2.9 KB, 40.6 MB.
  • No test asserted on the old footer string.
  • Full unit suite (1339 checks) and the integration suite stay green.

Normalize mithril's plain-text footer to moria's, so the two tools print
identical run stats. The old single line

  Scanned 117 files (42558958 bytes) in 0.203 s

is replaced with moria's aligned three-line block, upscaling the byte total to
KB/MB/GB/TB (integer bytes, one decimal thereafter):

  Files analyzed:  117
  Bytes analyzed:  40.6 MB
  Elapsed:         0.066 s

Same upscale loop and label alignment as moria. JSON output is unaffected.
@nmatt0
nmatt0 merged commit 9ebcfcd into master Sep 15, 2026
4 checks passed
@nmatt0
nmatt0 deleted the style/run-stats-footer branch September 15, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant