Commit 58073974 authored by Oran Agra's avatar Oran Agra Committed by antirez
Browse files

fix to latency monitor reporting wrong max latency

in some cases LATENCY HISTORY reported latency that was
higher than the max latency reported by LATENCY LATEST / DOCTOR
parent f17d8296
......@@ -115,6 +115,7 @@ void latencyAddSample(char *event, mstime_t latency) {
if (ts->samples[prev].time == now) {
if (latency > ts->samples[prev].latency)
ts->samples[prev].latency = latency;
if (latency > ts->max) ts->max = latency;
return;
}
......
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