From 61705a67036055992bb820fbfed79bdbe6b563ee Mon Sep 17 00:00:00 2001 From: Matthew Ludkin Date: Mon, 20 Jul 2020 11:49:01 +0100 Subject: [PATCH] Util indentations --- include/autoppl/util/logging.hpp | 6 +++--- include/autoppl/util/time/stopwatch.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/autoppl/util/logging.hpp b/include/autoppl/util/logging.hpp index 2177b257..aa2a695c 100644 --- a/include/autoppl/util/logging.hpp +++ b/include/autoppl/util/logging.hpp @@ -31,9 +31,9 @@ struct ProgressLogger { step = step+1; if (step % (_max / 100) == 0) { int percent = static_cast( - static_cast(step) / - (static_cast(_max) / 100.) - ); + static_cast(step) / + (static_cast(_max) / 100.) + ); _os << '\r' << _name << " [" << std::string(percent, '=') << std::string(100 - percent, ' ') diff --git a/include/autoppl/util/time/stopwatch.hpp b/include/autoppl/util/time/stopwatch.hpp index 407f49a5..d6a58396 100644 --- a/include/autoppl/util/time/stopwatch.hpp +++ b/include/autoppl/util/time/stopwatch.hpp @@ -21,7 +21,7 @@ struct StopWatch { static constexpr double nano = 1e-9; return std::chrono::duration_cast< - std::chrono::nanoseconds>(end_-start_).count() * nano; + std::chrono::nanoseconds>(end_-start_).count() * nano; } private: