mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
parent
0b2fe7d7b5
commit
999b775d8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue