Commit e3c0125b authored by antirez's avatar antirez
Browse files

Properly initialize min/max in latency.c.

parent a887af34
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment