mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +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) {
|
void latencyCommand(redisClient *c) {
|
||||||
struct latencyTimeSeries *ts;
|
struct latencyTimeSeries *ts;
|
||||||
|
|
||||||
if (!strcasecmp(c->argv[1]->ptr,"samples") && c->argc == 3) {
|
if (!strcasecmp(c->argv[1]->ptr,"history") && c->argc == 3) {
|
||||||
/* LATENCY SAMPLES <event> */
|
/* LATENCY HISTORY <event> */
|
||||||
ts = dictFetchValue(server.latency_events,c->argv[2]->ptr);
|
ts = dictFetchValue(server.latency_events,c->argv[2]->ptr);
|
||||||
if (ts == NULL) goto nodataerr;
|
if (ts == NULL) goto nodataerr;
|
||||||
latencyCommandReplyWithSamples(c,ts);
|
latencyCommandReplyWithSamples(c,ts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user