From 999b775d8edc4a4d9bd79badcb0a02cb5051007b Mon Sep 17 00:00:00 2001 From: wit liu <765765346@qq.com> Date: Sat, 15 Nov 2025 19:23:17 +0800 Subject: [PATCH] common: fix duration comparison in PrettyAge #33064 (#1776) --- common/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/format.go b/common/format.go index 7af41f52d5..31e08831f5 100644 --- a/common/format.go +++ b/common/format.go @@ -69,7 +69,7 @@ func (t PrettyAge) String() string { result, prec := "", 0 for _, unit := range ageUnits { - if diff > unit.Size { + if diff >= unit.Size { result = fmt.Sprintf("%s%d%s", result, diff/unit.Size, unit.Symbol) diff %= unit.Size