diff --git a/src/networking.c b/src/networking.c index a8d91a728e..80726d6a4e 100644 --- a/src/networking.c +++ b/src/networking.c @@ -2880,8 +2880,8 @@ sds catClientInfoString(sds s, client *client) { " resp=%i", client->resp, " lib-name=%s", client->lib_name ? (char*)client->lib_name->ptr : "", " lib-ver=%s", client->lib_ver ? (char*)client->lib_ver->ptr : "", - " tot-input=%U", client->net_input_bytes, - " tot-output=%U", client->net_output_bytes, + " tot-net-in=%U", client->net_input_bytes, + " tot-net-out=%U", client->net_output_bytes, " tot-cmds=%U", client->commands_processed)); return ret; } diff --git a/src/server.h b/src/server.h index 4899bb008e..ca75dc8d5b 100644 --- a/src/server.h +++ b/src/server.h @@ -1282,9 +1282,9 @@ typedef struct client { #ifdef LOG_REQ_RES clientReqResInfo reqres; #endif - unsigned long long net_input_bytes; - unsigned long long net_output_bytes; - unsigned long long commands_processed; + unsigned long long net_input_bytes; /* Total network input bytes read from this client. */ + unsigned long long net_output_bytes; /* Total network output bytes sent to this client. */ + unsigned long long commands_processed; /* Total count of commands this client executed. */ } client; /* ACL information */