From dd43d9bc5f609636e83d22a737d3f5ac0ff27a4b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 25 Jun 2020 08:43:28 -0700 Subject: [PATCH] derp: fix varz typo Updates tailscale/corp#391 --- derp/derp_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/derp/derp_server.go b/derp/derp_server.go index b7b011a5f..0eee50665 100644 --- a/derp/derp_server.go +++ b/derp/derp_server.go @@ -1132,8 +1132,8 @@ func (s *Server) ExpVar() expvar.Var { m.Set("counter_unique_clients_ever", s.expVarFunc(func() interface{} { return len(s.clientsEver) })) m.Set("gauge_memstats_sys0", expvar.Func(func() interface{} { return int64(s.memSys0) })) m.Set("gauge_watchers", s.expVarFunc(func() interface{} { return len(s.watchers) })) - m.Set("gauge_current_connnections", &s.curClients) - m.Set("gauge_current_home_connnections", &s.curHomeClients) + m.Set("gauge_current_connections", &s.curClients) + m.Set("gauge_current_home_connections", &s.curHomeClients) m.Set("gauge_clients_total", expvar.Func(func() interface{} { return len(s.clientsMesh) })) m.Set("gauge_clients_local", expvar.Func(func() interface{} { return len(s.clients) })) m.Set("gauge_clients_remote", expvar.Func(func() interface{} { return len(s.clientsMesh) - len(s.clients) }))