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.
This commit is contained in:
antirez 2018-10-02 16:10:23 +02:00
parent 8b343f1c0f
commit ac44ceed0c
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}