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 {
5138
5138
OutputListLength int // oll, output list length (replies are queued in this list when the buffer is full)
5139
5139
OutputMemory int // omem, output buffer memory usage
5140
5140
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
5141
5144
IoThread int // io-thread id
5142
5145
Events string // file descriptor events (see below)
5143
5146
LastCmd string // cmd, last command played
@@ -5303,6 +5306,12 @@ func parseClientInfo(txt string) (info *ClientInfo, err error) {
5303
5306
info .OutputMemory , err = strconv .Atoi (val )
5304
5307
case "tot-mem" :
5305
5308
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 )
5306
5315
case "events" :
5307
5316
info .Events = val
5308
5317
case "cmd" :
You can’t perform that action at this time.
0 commit comments