summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-07 12:35:24 +0200
committerantirez <antirez@gmail.com>2014-07-09 20:01:30 +0200
commit3e8f5113fa29198faad3fd8ac657fbfb1103e954 (patch)
treef822a1c533e96a8c419dbc14d1d298a2df073aae
parentc145854bacd854ebcfa5fdcbeced8d449358bceb (diff)
downloadredis-3e8f5113fa29198faad3fd8ac657fbfb1103e954.tar.gz
LATENCY SAMPLES renamed LATENCY HISTORY.
-rw-r--r--src/latency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latency.c b/src/latency.c
index 80810d98c..14c4d39ff 100644
--- a/src/latency.c
+++ b/src/latency.c
@@ -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);