mirror of
https://github.com/fluencelabs/redis
synced 2025-05-29 18:21:20 +00:00
LATENCY LATEST: add the max field.
This commit is contained in:
parent
a9d9898680
commit
b58c960eb2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user