aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/interop/stress_test.cc3
1 files changed, 2 insertions, 1 deletions
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)));