Commit 9a037792 authored by antirez's avatar antirez
Browse files

LATENCY SAMPLES renamed LATENCY HISTORY.

parent 7c6a028a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment