Skip to content
Snippets Groups Projects
Commit d31c78c6 authored by Yuxuan Li's avatar Yuxuan Li
Browse files

updated protobuf, merged latency_vs_load.cc(not deleted yet) and qps_json_driver.cc

parent 58977f14
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment