Skip to content

Comments

IEC formatting: fix boundary selection, use constants, add tests#44

Merged
yashbhutwala merged 1 commit intomasterfrom
fix/iec-boundary-and-tests
Sep 10, 2025
Merged

IEC formatting: fix boundary selection, use constants, add tests#44
yashbhutwala merged 1 commit intomasterfrom
fix/iec-boundary-and-tests

Conversation

@yashbhutwala
Copy link
Owner

  • Follow-up to Add decimals to output #29. Keeps decimal display but fixes unit boundary selection to use >= thresholds so exact powers render as 1Ki/1Mi/1Gi/1Ti.
  • Replaces magic numbers with named byte-size constants (IEC and decimal).
  • Adds unit tests covering boundary and fractional IEC cases.

… constants; add unit tests for IEC; bump k8s.io/cli-runtime to v0.20.0 for test/build compatibility
@yashbhutwala yashbhutwala merged commit 7edee1a into master Sep 10, 2025
3 checks passed
@yashbhutwala yashbhutwala deleted the fix/iec-boundary-and-tests branch September 10, 2025 13:48
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