From 9428b84484e1beb07d69bf0505a343792cdc81b6 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Fri, 9 Mar 2018 17:24:23 -0700 Subject: [PATCH] added cpu and threads to stats --- controller/stats.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/stats.go b/controller/stats.go index a4d20e15..bd4668a1 100644 --- a/controller/stats.go +++ b/controller/stats.go @@ -118,6 +118,8 @@ func (c *Controller) cmdServer(msg *server.Message) (res resp.Value, err error) m["avg_item_size"] = avgsz m["pointer_size"] = (32 << uintptr(uint64(^uintptr(0))>>63)) / 8 m["read_only"] = c.config.readOnly() + m["cpus"] = runtime.NumCPU() + m["threads"] = runtime.GOMAXPROCS(0) switch msg.OutputType { case server.JSON: