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) } }