RESP3: Use verbatim in LATENCY subcommands.
This commit is contained in:
parent
cb384127d1
commit
474a923160
@ -599,7 +599,7 @@ NULL
|
|||||||
event = dictGetKey(de);
|
event = dictGetKey(de);
|
||||||
|
|
||||||
graph = latencyCommandGenSparkeline(event,ts);
|
graph = latencyCommandGenSparkeline(event,ts);
|
||||||
addReplyBulkCString(c,graph);
|
addReplyVerbatim(c,graph,sdslen(graph),"txt");
|
||||||
sdsfree(graph);
|
sdsfree(graph);
|
||||||
} else if (!strcasecmp(c->argv[1]->ptr,"latest") && c->argc == 2) {
|
} else if (!strcasecmp(c->argv[1]->ptr,"latest") && c->argc == 2) {
|
||||||
/* LATENCY LATEST */
|
/* LATENCY LATEST */
|
||||||
@ -608,7 +608,7 @@ NULL
|
|||||||
/* LATENCY DOCTOR */
|
/* LATENCY DOCTOR */
|
||||||
sds report = createLatencyReport();
|
sds report = createLatencyReport();
|
||||||
|
|
||||||
addReplyBulkCBuffer(c,report,sdslen(report));
|
addReplyVerbatim(c,report,sdslen(report),"txt");
|
||||||
sdsfree(report);
|
sdsfree(report);
|
||||||
} else if (!strcasecmp(c->argv[1]->ptr,"reset") && c->argc >= 2) {
|
} else if (!strcasecmp(c->argv[1]->ptr,"reset") && c->argc >= 2) {
|
||||||
/* LATENCY RESET */
|
/* LATENCY RESET */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user