diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-04-15 15:38:17 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-04-15 15:38:17 -0700 |
commit | e9a8d89dc2708eb4da1ce9afd8ba5a0cc1537303 (patch) | |
tree | d867b221a4573718d674d926c558f6e1cb28749c /test/cpp | |
parent | 33c161dffa0aab7f81cf65b1faffcb4cd397cfdf (diff) |
fix formatting
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/qps/driver.cc | 11 | ||||
-rw-r--r-- | test/cpp/qps/report.cc | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index f672708813..2583ceb819 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -141,14 +141,15 @@ static void postprocess_scenario_result(ScenarioResult* result) { result->mutable_summary()->set_latency_99(histogram.Percentile(99)); result->mutable_summary()->set_latency_999(histogram.Percentile(99.9)); - auto server_system_time = 100.0 * sum(result->server_stats(), ServerSystemTime) / - sum(result->server_stats(), ServerWallTime); + auto server_system_time = 100.0 * + sum(result->server_stats(), ServerSystemTime) / + sum(result->server_stats(), ServerWallTime); auto server_user_time = 100.0 * sum(result->server_stats(), ServerUserTime) / - sum(result->server_stats(), ServerWallTime); + sum(result->server_stats(), ServerWallTime); auto client_system_time = 100.0 * sum(result->client_stats(), SystemTime) / - sum(result->client_stats(), WallTime); + sum(result->client_stats(), WallTime); auto client_user_time = 100.0 * sum(result->client_stats(), UserTime) / - sum(result->client_stats(), WallTime); + sum(result->client_stats(), WallTime); result->mutable_summary()->set_server_system_time(server_system_time); result->mutable_summary()->set_server_user_time(server_user_time); diff --git a/test/cpp/qps/report.cc b/test/cpp/qps/report.cc index a158b7d687..3ae41399cf 100644 --- a/test/cpp/qps/report.cc +++ b/test/cpp/qps/report.cc @@ -78,8 +78,7 @@ void GprLogReporter::ReportQPS(const ScenarioResult& result) { } void GprLogReporter::ReportQPSPerCore(const ScenarioResult& result) { - gpr_log(GPR_INFO, "QPS: %.1f (%.1f/server core)", - result.summary().qps(), + gpr_log(GPR_INFO, "QPS: %.1f (%.1f/server core)", result.summary().qps(), result.summary().qps_per_server_core()); } |