mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Updated single_include after changing percent calculation in progress spinner
This commit is contained in:
@@ -2782,7 +2782,7 @@ public:
|
|||||||
os << get_value<details::ProgressBarOption::spinner_states>()
|
os << get_value<details::ProgressBarOption::spinner_states>()
|
||||||
[index_ % get_value<details::ProgressBarOption::spinner_states>().size()];
|
[index_ % get_value<details::ProgressBarOption::spinner_states>().size()];
|
||||||
if (get_value<details::ProgressBarOption::show_percentage>()) {
|
if (get_value<details::ProgressBarOption::show_percentage>()) {
|
||||||
os << " " << std::min(progress_, size_t(max_progress)) << "%";
|
os << " " << std::size_t(progress_ / double(max_progress) * 100) << "%";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_value<details::ProgressBarOption::show_elapsed_time>()) {
|
if (get_value<details::ProgressBarOption::show_elapsed_time>()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user