mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
LATENCY LATEST: add the max field.
This commit is contained in:
parent
e173f7a0e3
commit
1766d91697
@ -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