From 5c6c2805591d05c3401f9aebabf0e16719854c9a Mon Sep 17 00:00:00 2001 From: Steve Lacy Date: Tue, 13 Nov 2018 10:24:15 -0700 Subject: [PATCH] Add server command for `version` - closes #384 --- internal/server/stats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/server/stats.go b/internal/server/stats.go index 1ee30d07..1c33d972 100644 --- a/internal/server/stats.go +++ b/internal/server/stats.go @@ -115,6 +115,7 @@ func (c *Server) cmdServer(msg *Message) (res resp.Value, err error) { m["heap_released"] = mem.HeapReleased m["max_heap_size"] = c.config.maxMemory() m["avg_item_size"] = avgsz + m["version"] = core.Version m["pointer_size"] = (32 << uintptr(uint64(^uintptr(0))>>63)) / 8 m["read_only"] = c.config.readOnly() m["cpus"] = runtime.NumCPU()