Skip to content

Commit 9428b84

Browse files
committed
added cpu and threads to stats
1 parent 4c2c1dd commit 9428b84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controller/stats.go

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ func (c *Controller) cmdServer(msg *server.Message) (res resp.Value, err error)
118118
m["avg_item_size"] = avgsz
119119
m["pointer_size"] = (32 << uintptr(uint64(^uintptr(0))>>63)) / 8
120120
m["read_only"] = c.config.readOnly()
121+
m["cpus"] = runtime.NumCPU()
122+
m["threads"] = runtime.GOMAXPROCS(0)
121123

122124
switch msg.OutputType {
123125
case server.JSON:

0 commit comments

Comments
 (0)