From 1adb13143f21a54a3e3d7018d0db4d15d78c1adc Mon Sep 17 00:00:00 2001 From: Craig Tiller <ctiller@google.com> Date: Tue, 31 May 2016 13:04:32 -0700 Subject: [PATCH] Add comment --- test/cpp/qps/driver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index da47a985b8c..147c540840e 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -342,6 +342,8 @@ std::unique_ptr<ScenarioResult> RunScenario( } } + // Reduce channel count so that total channels specified is held regardless + // of the number of clients available size_t num_channels = (i == num_clients - 1) ? channels_allocated - client_config.client_channels()