Commit 8e8d957f authored by Oran Agra's avatar Oran Agra
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 32ac4c64
......@@ -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