mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Properly initialize min/max in latency.c.
This commit is contained in:
parent
a887af34e1
commit
e3c0125b70
@ -145,7 +145,7 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) {
|
||||
int j;
|
||||
struct sequence *seq = createSparklineSequence();
|
||||
sds graph = sdsempty();
|
||||
uint32_t min, max;
|
||||
uint32_t min = 0, max = 0;
|
||||
|
||||
for (j = 0; j < LATENCY_TS_LEN; j++) {
|
||||
int i = (ts->idx + j) % LATENCY_TS_LEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user