From c36b480ce9354daaaf829de88a0a04e76873df7a Mon Sep 17 00:00:00 2001 From: Sree Kuchibhotla <sreek@google.com> Date: Wed, 4 Nov 2015 14:25:05 -0800 Subject: [PATCH] Fix a small error --- test/cpp/interop/stress_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cpp/interop/stress_test.cc b/test/cpp/interop/stress_test.cc index 2d84c0d103..fffa3dd3de 100644 --- a/test/cpp/interop/stress_test.cc +++ b/test/cpp/interop/stress_test.cc @@ -236,7 +236,8 @@ int main(int argc, char** argv) { FLAGS_sleep_duration_ms, FLAGS_metrics_collection_interval_secs); bool is_already_created; - grpc::string metricName = "/stress_test/qps/thread/" + std::to_string(i); + grpc::string metricName = + "/stress_test/qps/thread/" + std::to_string(thread_idx); test_threads.emplace_back( thread(&StressTestInteropClient::MainLoop, client, metrics_service.CreateGauge(metricName, is_already_created))); -- GitLab