Fix embarassing break bug

pull/1380/head
Vijay Pai 10 years ago
parent 105ff2eb2e
commit 87dd702783
  1. 6
      test/cpp/qps/client_sync.cc

@ -80,22 +80,26 @@ class SynchronousClient : public Client {
closed_loop_ = false; closed_loop_ = false;
std::unique_ptr<RandomDist> random_dist; std::unique_ptr<RandomDist> random_dist;
auto& load = config.load_parameters(); auto& load = config.load_params();
switch (config.load_type()) { switch (config.load_type()) {
case POISSON: case POISSON:
random_dist.reset random_dist.reset
(new ExpDist(load.poisson().offered_load()/num_threads_)); (new ExpDist(load.poisson().offered_load()/num_threads_));
break;
case UNIFORM: case UNIFORM:
random_dist.reset random_dist.reset
(new UniformDist(load.uniform().interarrival_lo()*num_threads_, (new UniformDist(load.uniform().interarrival_lo()*num_threads_,
load.uniform().interarrival_hi()*num_threads_)); load.uniform().interarrival_hi()*num_threads_));
break;
case DETERMINISTIC: case DETERMINISTIC:
random_dist.reset random_dist.reset
(new DetDist(num_threads_/load.determ().offered_load())); (new DetDist(num_threads_/load.determ().offered_load()));
break;
case PARETO: case PARETO:
random_dist.reset random_dist.reset
(new ParetoDist(load.pareto().interarrival_base()*num_threads_, (new ParetoDist(load.pareto().interarrival_base()*num_threads_,
load.pareto().alpha())); load.pareto().alpha()));
break;
default: default:
GPR_ASSERT(false); GPR_ASSERT(false);
break; break;

Loading…
Cancel
Save