LATENCY LATEST: add the max field.

This commit is contained in:
antirez 2014-07-02 12:40:38 +02:00
parent e173f7a0e3
commit 1766d91697

View File

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