diff --git a/apps/EchoClient.cpp b/apps/EchoClient.cpp index d42302355a46ae5680483f75afe17a05a4300064..174f3cc80e4f53a30ab9ad833010b18dafddae1c 100644 --- a/apps/EchoClient.cpp +++ b/apps/EchoClient.cpp @@ -365,12 +365,12 @@ auto main(int argc, char* argv[]) -> int { RunningAverage avg_ns; RunningAverage avg_iterations; - RunningAverage avg_unexpectedEchos; + uint64_t unexpectedEchos = 0; uint64_t total_iterations = 0; for (size_t i = 0; i < clients; ++i) { avg_ns.update(clientResults[i].avg_ns); avg_iterations.update(clientResults[i].iterations); - avg_unexpectedEchos.update(clientResults[i].unexpectedEchos); + unexpectedEchos += clientResults[i].unexpectedEchos; total_iterations += clientResults[i].iterations; } @@ -401,8 +401,8 @@ auto main(int argc, char* argv[]) -> int { << std::endl; } sst << clients << "," << avg_iterations.getAverage() << "," << total_iterations << "," << size - << "," << avg_ns.getAverage() << "," << avg_unexpectedEchos.getAverage() << "," - << connect_duration << "," << echo_duration << "," << total_duration << std::endl; + << "," << avg_ns.getAverage() << "," << unexpectedEchos << "," << connect_duration << "," + << echo_duration << "," << total_duration << std::endl; auto output = sst.str(); if (emper::io::writeFileAndWait(out_fd, output.c_str(), output.size()) < 0) {