From 00913df3521d967ac31ee22c23447b5aa711f2e6 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 4 Jul 2022 14:19:01 -0700 Subject: Add basic stat counters --- cmd/mobius-hotline-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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) } -- cgit