diff --git a/include/progress/bar.hpp b/include/progress/bar.hpp index 5b5982c..c3a5297 100644 --- a/include/progress/bar.hpp +++ b/include/progress/bar.hpp @@ -136,7 +136,7 @@ private: if (_show_percentage) { std::cout << " " << std::min(static_cast(_progress), size_t(100)) << "%"; } - if (_max_text_after_length == 0) _max_text_after_length = 20; + if (_max_text_after_length == 0) _max_text_after_length = 10; std::cout << " " << _text_after << std::string(_max_text_after_length, ' ') << "\r"; std::cout.flush(); if (_progress > 100.0) { diff --git a/test/multiple_bars.cpp b/test/multiple_bars.cpp index 73a200c..2499b9e 100644 --- a/test/multiple_bars.cpp +++ b/test/multiple_bars.cpp @@ -101,5 +101,7 @@ int main() { std::thread thread3(job3); thread3.join(); + std::this_thread::sleep_for(std::chrono::milliseconds(5000)); + return 0; }