Unverified Commit 480d4af1 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #4684 from oranagra/latency_monitor_max

fix to latency monitor reporting wrong max latency
parents 32ac4c64 8e8d957f
...@@ -115,6 +115,7 @@ void latencyAddSample(char *event, mstime_t latency) { ...@@ -115,6 +115,7 @@ void latencyAddSample(char *event, mstime_t latency) {
if (ts->samples[prev].time == now) { if (ts->samples[prev].time == now) {
if (latency > ts->samples[prev].latency) if (latency > ts->samples[prev].latency)
ts->samples[prev].latency = latency; ts->samples[prev].latency = latency;
if (latency > ts->max) ts->max = latency;
return; 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