From 8e8d957ff82859f5d65b5977d837cd610da5b431 Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Tue, 13 Feb 2018 15:47:06 +0200 Subject: 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 --- src/latency.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/latency.c b/src/latency.c index 9e9f1f13a..1f43f906d 100644 --- a/src/latency.c +++ b/src/latency.c @@ -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; } -- cgit v1.2.1