File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5138,6 +5138,9 @@ type ClientInfo struct {
51385138 OutputListLength int // oll, output list length (replies are queued in this list when the buffer is full)
51395139 OutputMemory int // omem, output buffer memory usage
51405140 TotalMemory int // tot-mem, total memory consumed by this client in its various buffers
5141+ TotalNetIn int // tot-net-in, total network input
5142+ TotalNetOut int // tot-net-out, total network output
5143+ TotalCmds int // tot-cmds, total number of commands processed
51415144 IoThread int // io-thread id
51425145 Events string // file descriptor events (see below)
51435146 LastCmd string // cmd, last command played
@@ -5303,6 +5306,12 @@ func parseClientInfo(txt string) (info *ClientInfo, err error) {
53035306 info .OutputMemory , err = strconv .Atoi (val )
53045307 case "tot-mem" :
53055308 info .TotalMemory , err = strconv .Atoi (val )
5309+ case "tot-net-in" :
5310+ info .TotalNetIn , err = strconv .Atoi (val )
5311+ case "tot-net-out" :
5312+ info .TotalNetOut , err = strconv .Atoi (val )
5313+ case "tot-cmds" :
5314+ info .TotalCmds , err = strconv .Atoi (val )
53065315 case "events" :
53075316 info .Events = val
53085317 case "cmd" :
You can’t perform that action at this time.
0 commit comments