Skip to content

Commit fa903ef

Browse files
committed
common: fix duration comparison in PrettyAge ethereum#33064
1 parent 28a4f25 commit fa903ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (t PrettyAge) String() string {
6969
result, prec := "", 0
7070

7171
for _, unit := range ageUnits {
72-
if diff > unit.Size {
72+
if diff >= unit.Size {
7373
result = fmt.Sprintf("%s%d%s", result, diff/unit.Size, unit.Symbol)
7474
diff %= unit.Size
7575

0 commit comments

Comments
 (0)