From 1766d91697cae7f28b50f7ec3347b7789549c35f Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 Jul 2014 12:40:38 +0200 Subject: [PATCH] LATENCY LATEST: add the max field. --- src/latency.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/latency.c b/src/latency.c index 649381efc..af629bebd 100644 --- a/src/latency.c +++ b/src/latency.c @@ -131,10 +131,11 @@ void latencyCommandReplyWithLatestEvents(redisClient *c) { struct latencyTimeSeries *ts = dictGetVal(de); int last = (ts->idx + LATENCY_TS_LEN - 1) % LATENCY_TS_LEN; - addReplyMultiBulkLen(c,3); + addReplyMultiBulkLen(c,4); addReplyBulkCString(c,event); addReplyLongLong(c,ts->samples[last].time); addReplyLongLong(c,ts->samples[last].latency); + addReplyLongLong(c,ts->max); } dictReleaseIterator(di); }