From 187233c5dea2d9a8cbced78e2180e279a4c72e4a Mon Sep 17 00:00:00 2001 From: Benjamin Perseghetti Date: Tue, 18 Jun 2024 11:33:00 -0400 Subject: [PATCH] Whitespace. Signed-off-by: Benjamin Perseghetti --- src/cmd/gz.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmd/gz.cc b/src/cmd/gz.cc index 7386356d..adb948c1 100644 --- a/src/cmd/gz.cc +++ b/src/cmd/gz.cc @@ -395,20 +395,18 @@ extern "C" void cmdTopicFrequency(const char *_topic) intervalV.push_back(static_cast((timeV[i+1] - timeV[i])) / 1e+9); } - auto [min, max] = std::minmax_element(intervalV.begin(), intervalV.end()); - mean = std::accumulate(std::begin(intervalV), std::end(intervalV), 0.0) / window; - for (auto interval : intervalV) { dev += pow(interval - mean, 2); } stdDev = sqrt(dev / window); std::cout << "\n" << std::endl; - for(int i = 0; i < window; ++i) { + for(int i = 0; i < window; ++i) + { std::cout << "interval [" << i << "]: " << intervalV[i] << "s" << std::endl; }