Browse Source

add commas

pull/15/head
Jason 5 years ago
parent
commit
0c93157360
  1. 6
      common/stats/session/utils.go

6
common/stats/session/utils.go

@ -20,15 +20,15 @@ func uptime() string {
var y, m, d, h string
if year != 0 {
y = fmt.Sprintf("%dY", year)
y = fmt.Sprintf("%dY,", year)
}
if month != 0 {
m = fmt.Sprintf("%dM", month)
m = fmt.Sprintf("%dM,", month)
}
if day != 0 {
d = fmt.Sprintf("%dd", day)
d = fmt.Sprintf("%dd,", day)
}
h = fmt.Sprintf("%dh%dm%ds", hour, min, sec)

Loading…
Cancel
Save