From 0cc494bbdccbb398ac190ec21166c526d0db4fca Mon Sep 17 00:00:00 2001 From: Tim Guenthner Date: Thu, 16 Jun 2022 19:50:42 -0700 Subject: [PATCH] Fix bug in latency logging Due to a parameter mismatch between the emitLatencyResults and logLatency the percentile latencies are being incorrectly logged. This change makes the two functions consistent. --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 9774b23..b2fea44 100644 --- a/log.go +++ b/log.go @@ -129,7 +129,7 @@ func logResults(s []string) { } } -func logLatency(remoteIP, proto string, avg, min, p50, p90, p95, p99, p999, p9999, max time.Duration) { +func logLatency(remoteIP, proto string, avg, min, max, p50, p90, p95, p99, p999, p9999 time.Duration) { if loggingActive { logData := logLatencyData{} logData.Time = time.Now().UTC().Format(time.RFC3339)