Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b2604dc5
Commit
b2604dc5
authored
Jul 07, 2014
by
antirez
Browse files
LATENCY SAMPLES renamed LATENCY HISTORY.
parent
f8934657
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/latency.c
View file @
b2604dc5
...
@@ -221,8 +221,8 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) {
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment