From af7c004832cb23de824fe4acf78bfa0dd9fe0758 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Mon, 26 Oct 2020 07:59:48 -0500 Subject: [PATCH] Updated single_include after changing percent calculation in progress spinner --- single_include/indicators/indicators.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single_include/indicators/indicators.hpp b/single_include/indicators/indicators.hpp index 84bd4f4..72c26b7 100644 --- a/single_include/indicators/indicators.hpp +++ b/single_include/indicators/indicators.hpp @@ -2782,7 +2782,7 @@ public: os << get_value() [index_ % get_value().size()]; if (get_value()) { - os << " " << std::min(progress_, size_t(max_progress)) << "%"; + os << " " << std::size_t(progress_ / double(max_progress) * 100) << "%"; } if (get_value()) {