Skip to content

Commit

Permalink
core/connmap: format time to sec not millis
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 4, 2024
1 parent cd8fae9 commit 18c2687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intra/core/connmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (c *connstat) String() string {
}

func formatTime(t time.Time) string {
if s := int64(time.Since(t).Seconds() * 1000); s < 60 {
if s := int64(time.Since(t).Seconds()); s < 60 {
return fmt.Sprintf("%ds", s)
} else if s < 3600 {
return fmt.Sprintf("%dm", s/60)
Expand Down

0 comments on commit 18c2687

Please sign in to comment.