Skip to content

Commit

Permalink
Rename and add comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Tianjie <TJ_Chen@outlook.com>
  • Loading branch information
CharlesChen888 committed Apr 18, 2024
1 parent 506e5db commit 94da8db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/networking.c
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/server.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 94da8db

Please sign in to comment.