diff --git a/src/networking.cpp b/src/networking.cpp index 13e7f4da3..579e81561 100644 --- a/src/networking.cpp +++ b/src/networking.cpp @@ -612,7 +612,7 @@ void trimReplyUnusedTailSpace(client *c) { /* take over the allocation's internal fragmentation (at least for * memory usage tracking) */ tail->size = zmalloc_usable(tail) - sizeof(clientReplyBlock); - c->reply_bytes += tail->size - old_size; + c->reply_bytes = c->reply_bytes + tail->size - old_size; listNodeValue(ln) = tail; } }