mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05: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…
Reference in New Issue
Block a user