From 7fcbde963a0ffffa9f4810507745f13fbdee5dce Mon Sep 17 00:00:00 2001 From: Christopher Snell Date: Wed, 7 Dec 2016 10:50:36 -0600 Subject: [PATCH] Fix incorrectly named timing metrics --- simple.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simple.go b/simple.go index 18facf1..7b947c4 100644 --- a/simple.go +++ b/simple.go @@ -112,13 +112,13 @@ func RunSimpleTest(ctx context.Context, j Job, storage *Storage, client *http.Cl storage.MetricDistributor <- makeMetric(j.Name, "dns_duration", t1.Sub(t0).Seconds()*1000) storage.MetricDistributor <- makeMetric(j.Name, "server_connection_duration", t2.Sub(t0).Seconds()*1000) storage.MetricDistributor <- makeMetric(j.Name, "tls_handshake_duration", t3.Sub(t2).Seconds()*1000) - storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t4.Sub(t3).Seconds()*1000) - storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t5.Sub(t4).Seconds()*1000) + storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t4.Sub(t3).Seconds()*1000) + storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t5.Sub(t4).Seconds()*1000) case "http": storage.MetricDistributor <- makeMetric(j.Name, "dns_duration", t1.Sub(t0).Seconds()*1000) storage.MetricDistributor <- makeMetric(j.Name, "server_connection_duration", t3.Sub(t1).Seconds()*1000) - storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t4.Sub(t3).Seconds()*1000) - storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t5.Sub(t4).Seconds()*1000) + storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t4.Sub(t3).Seconds()*1000) + storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t5.Sub(t4).Seconds()*1000) } }