summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-10-02 16:10:23 +0200
committerantirez <antirez@gmail.com>2018-10-02 16:10:30 +0200
commitac44ceed0c5fc7d04a4755a081d83914dff7260c (patch)
treef0bfc3b5110e76a203da55c68e00f333f306937a
parent8b343f1c0fac443e6b604642f5c2acf041add90b (diff)
downloadredis-argv-accounting.tar.gz
Remove client->buf from output buffers in client info.argv-accounting
Technically it is correct that we count that, but the sense of the field is more the *overhead* of the client compared to the baseline. So we want to see idle clients at 0.
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index d2326a643..a888165f6 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -1633,7 +1633,7 @@ sds catClientInfoString(sds s, client *client) {
(unsigned long long) zmalloc_size(client->argv) + client->argv_bytes,
(unsigned long long) client->bufpos,
(unsigned long long) listLength(client->reply),
- (unsigned long long) getClientOutputBufferMemoryUsage(client) + sizeof(client->buf),
+ (unsigned long long) getClientOutputBufferMemoryUsage(client),
events,
client->lastcmd ? client->lastcmd->name : "NULL");
}