diff --git a/src/multi_progress.h b/src/multi_progress.h index 03c67fa7..97c1eb06 100644 --- a/src/multi_progress.h +++ b/src/multi_progress.h @@ -40,8 +40,8 @@ class multi_progress { std::string format = "[:bar] :percent", size_t total = 100, int width = 78, - const char complete_char = '=', - const char incomplete_char = '-', + const char* complete_char = "=", + const char* incomplete_char = "-", bool clear = true, double show_after = 0.2) : pb_(new RProgress::RProgress( @@ -49,6 +49,7 @@ class multi_progress { total, width, complete_char, + complete_char, incomplete_char, clear, show_after)), @@ -56,7 +57,9 @@ class multi_progress { total_(total), last_progress_(0), last_time_(std::chrono::system_clock::now()), - update_interval_(10) {} + update_interval_(10) { + pb_->set_reverse(false); + } void tick(size_t progress) { std::lock_guard guard(mutex_);