From 227c4557928722dd138737315ed9cefb9a62443c Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sat, 30 May 2020 17:16:07 +0000 Subject: [PATCH] formatting source-code for a850308fbada18c0d4b6f9a9cac5c34fc064cbae --- math/realtime_stats.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/math/realtime_stats.cpp b/math/realtime_stats.cpp index d2b55a3cd..2fbfc9bd5 100644 --- a/math/realtime_stats.cpp +++ b/math/realtime_stats.cpp @@ -23,7 +23,8 @@ class stats_computer1 { * \param[in] x new data sample */ void new_val(T x) { - if (n == 0) K = x; + if (n == 0) + K = x; n++; T tmp = x - K; Ex += tmp; @@ -160,7 +161,8 @@ int main(int argc, char **argv) { // check for failure to read input. Happens for // non-numeric data - if (std::cin.fail()) break; + if (std::cin.fail()) + break; stats1.new_val(val); stats2.new_val(val);