Skip to content

Commit ca6893e

Browse files
committed
vendor/go-units: align HumanDuration rounding with Desktop behavior
Sync vendored HumanDuration semantics with docker/go-units PR #51: - add shared unit constants and roundDuration helper - round day/week/month/year outputs consistently - switch threshold checks to duration-based cutovers Add vendored duration tests covering boundary transitions and expected example outputs to guard against regressions in CREATED formatting. Refs: #6891
1 parent a9031f4 commit ca6893e

2 files changed

Lines changed: 161 additions & 8 deletions

File tree

vendor/github.com/docker/go-units/duration.go

Lines changed: 19 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/go-units/duration_test.go

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)