aboutsummaryrefslogtreecommitdiff
path: root/cmd/mobius-hotline-server
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-07-04 14:19:01 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-07-04 14:19:01 -0700
commit00913df3521d967ac31ee22c23447b5aa711f2e6 (patch)
treefdfb585d9f79dc50bf53465d07e6975f0213aa8b /cmd/mobius-hotline-server
parentf3059b6aa517f9f8e204b2fa1913e2fdfccef570 (diff)
Add basic stat counters
Diffstat (limited to 'cmd/mobius-hotline-server')
-rw-r--r--cmd/mobius-hotline-server/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mobius-hotline-server/main.go b/cmd/mobius-hotline-server/main.go
index 63dc824..8407449 100644
--- a/cmd/mobius-hotline-server/main.go
+++ b/cmd/mobius-hotline-server/main.go
@@ -118,7 +118,7 @@ type statHandler struct {
}
func (sh *statHandler) RenderStats(w http.ResponseWriter, _ *http.Request) {
- u, err := json.Marshal(sh.hlServer.Stats)
+ u, err := json.Marshal(sh.hlServer.CurrentStats())
if err != nil {
panic(err)
}