From 87dd7027838c0787dfcc41e713699ce4374d4d52 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Mon, 27 Apr 2015 12:17:37 -0700 Subject: [PATCH] Fix embarassing break bug --- test/cpp/qps/client_sync.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/cpp/qps/client_sync.cc b/test/cpp/qps/client_sync.cc index 16e87ad6b76..2b4560f67aa 100644 --- a/test/cpp/qps/client_sync.cc +++ b/test/cpp/qps/client_sync.cc @@ -80,22 +80,26 @@ class SynchronousClient : public Client { closed_loop_ = false; std::unique_ptr random_dist; - auto& load = config.load_parameters(); + auto& load = config.load_params(); switch (config.load_type()) { case POISSON: random_dist.reset (new ExpDist(load.poisson().offered_load()/num_threads_)); + break; case UNIFORM: random_dist.reset (new UniformDist(load.uniform().interarrival_lo()*num_threads_, load.uniform().interarrival_hi()*num_threads_)); + break; case DETERMINISTIC: random_dist.reset (new DetDist(num_threads_/load.determ().offered_load())); + break; case PARETO: random_dist.reset (new ParetoDist(load.pareto().interarrival_base()*num_threads_, load.pareto().alpha())); + break; default: GPR_ASSERT(false); break;