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
e3c0125b
Commit
e3c0125b
authored
Jul 02, 2014
by
antirez
Browse files
Properly initialize min/max in latency.c.
parent
a887af34
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/latency.c
View file @
e3c0125b
...
@@ -145,7 +145,7 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) {
...
@@ -145,7 +145,7 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) {
int
j
;
int
j
;
struct
sequence
*
seq
=
createSparklineSequence
();
struct
sequence
*
seq
=
createSparklineSequence
();
sds
graph
=
sdsempty
();
sds
graph
=
sdsempty
();
uint32_t
min
,
max
;
uint32_t
min
=
0
,
max
=
0
;
for
(
j
=
0
;
j
<
LATENCY_TS_LEN
;
j
++
)
{
for
(
j
=
0
;
j
<
LATENCY_TS_LEN
;
j
++
)
{
int
i
=
(
ts
->
idx
+
j
)
%
LATENCY_TS_LEN
;
int
i
=
(
ts
->
idx
+
j
)
%
LATENCY_TS_LEN
;
...
...
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