summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-07-07 12:35:24 +0200
committerantirez <antirez@gmail.com>2014-07-07 12:35:24 +0200
commitb2604dc58c69f357a66df54067eec33a4f262cc9 (patch)
treeb952029ed57e4ce4dde6f1e906b0b4cbfd2b92da /src
parentf8934657b2c568be46e896627ea2c51eb16aa455 (diff)
downloadredis-b2604dc58c69f357a66df54067eec33a4f262cc9.tar.gz
LATENCY SAMPLES renamed LATENCY HISTORY.
Diffstat (limited to 'src')
-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);