From ac44ceed0c5fc7d04a4755a081d83914dff7260c Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 2 Oct 2018 16:10:23 +0200 Subject: Remove client->buf from output buffers in client info. 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. --- src/networking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.1