mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
duration formatting update
This commit is contained in:
parent
5fb7d21c80
commit
e9b2079599
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func FormatDuration(d time.Duration) string {
|
|||
if minutes > 0 {
|
||||
parts = append(parts, fmt.Sprintf("%d minute%s", minutes, pluralize(minutes)))
|
||||
}
|
||||
if seconds > 0 {
|
||||
if seconds > 0 && totalSeconds < 3600 {
|
||||
parts = append(parts, fmt.Sprintf("%d second%s", seconds, pluralize(seconds)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue