Commit ac44ceed authored by antirez's avatar antirez
Browse files

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.
parent 8b343f1c
......@@ -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");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment