Minor updates

This commit is contained in:
Pranav Srinivas KumaR
2019-12-03 23:44:59 -06:00
parent 81267f80c8
commit 43702bdb4f
2 changed files with 3 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ private:
if (_show_percentage) {
std::cout << " " << std::min(static_cast<size_t>(_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) {