Browse Source

stats format changed

pull/15/head
Jason 5 years ago
parent
commit
65b97cbdc8
  1. 2
      common/stats/session/session.go

2
common/stats/session/session.go

@ -83,7 +83,7 @@ func (s *simpleSessionStater) Start() error {
showTime := func() string {
return time.Now().Format("2006-01-02 15:04:05")
}
_, _ = fmt.Fprintf(w, "<h2>Date: %s</h2>", showTime())
_, _ = fmt.Fprintf(w, "<h2>%s</h2>", showTime())
_, _ = fmt.Fprintf(w, "<p>Active sessions %d</p>", len(sessions))
tablePrint(w, sessions)
_, _ = fmt.Fprintf(w, "<br/><br/>")

Loading…
Cancel
Save