diff options
author | 2016-10-04 16:28:01 -0700 | |
---|---|---|
committer | 2016-10-06 15:05:55 -0700 | |
commit | d31c78c6f05bc1e6e6ce307b43bd47993c8aead0 (patch) | |
tree | c325722d85bb69faed2ba8c7b311ee0ee79565ae /test/cpp/qps/qps_json_driver.cc | |
parent | 58977f1466ebca152d4473eca5250b36ac1849ca (diff) |
updated protobuf, merged latency_vs_load.cc(not deleted yet) and qps_json_driver.cc
Diffstat (limited to 'test/cpp/qps/qps_json_driver.cc')
-rw-r--r-- | test/cpp/qps/qps_json_driver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index 91418d12f8..ac427e3a3d 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -50,7 +50,7 @@ DEFINE_string(scenarios_json, "", "JSON string containing an array of Scenario objects"); DEFINE_bool(quit, false, "Quit the workers"); -DEFINE_bool(search, flase, "Search for offered load setting that achieves targeted cpu load"); +DEFINE_bool(search, false, "Search for offered load setting that achieves targeted cpu load"); DEFINE_double(initial_offered_load, 1000.0, "Set up for intial offered load"); @@ -98,7 +98,7 @@ static double GetCpuLoad(Scenario * scenario, double offered_load, bool* success } static double BinarySearch(Scenario * scenario, double targeted_cpu_load, - double low_offered_load, double high_offered_load, bool* success) { + double low, double high, bool* success) { while (low <= high - FLAGS_precision) { double mid = low + (high - low) /2; double current_cpu_load = GetCpuLoad(scenario, mid, success); |