mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
LATENCY SAMPLES renamed LATENCY HISTORY.
This commit is contained in:
parent
f8934657b2
commit
b2604dc58c
@ -221,8 +221,8 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) {
|
||||
void latencyCommand(redisClient *c) {
|
||||
struct latencyTimeSeries *ts;
|
||||
|
||||
if (!strcasecmp(c->argv[1]->ptr,"samples") && c->argc == 3) {
|
||||
/* LATENCY SAMPLES <event> */
|
||||
if (!strcasecmp(c->argv[1]->ptr,"history") && c->argc == 3) {
|
||||
/* LATENCY HISTORY <event> */
|
||||
ts = dictFetchValue(server.latency_events,c->argv[2]->ptr);
|
||||
if (ts == NULL) goto nodataerr;
|
||||
latencyCommandReplyWithSamples(c,ts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user