From a4962b5d2d1ba868d897490c053f88d5a6f19b71 Mon Sep 17 00:00:00 2001 From: Dody Suria Wijaya <46476260+dodysw2@users.noreply.github.com> Date: Sat, 12 Feb 2022 14:10:54 +0700 Subject: [PATCH] fix swapped rtt parameter (#1053) Co-authored-by: Dody Suria Wijaya fix small bug that caused output_binary rtt and start time to be swapped --- output_http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output_http.go b/output_http.go index cb0c0de..b709f63 100644 --- a/output_http.go +++ b/output_http.go @@ -25,8 +25,8 @@ const ( type response struct { payload []byte uuid []byte - roundTripTime int64 startedAt int64 + roundTripTime int64 } // HTTPOutputConfig struct for holding http output configuration @@ -206,7 +206,7 @@ func (o *HTTPOutput) PluginRead() (*Message, error) { msg.Data = resp.payload } - msg.Meta = payloadHeader(ReplayedResponsePayload, resp.uuid, resp.roundTripTime, resp.startedAt) + msg.Meta = payloadHeader(ReplayedResponsePayload, resp.uuid, resp.startedAt, resp.roundTripTime) return &msg, nil }