libmain/progress-bar: actually don't show short activities

The progress bar is not supposed to show very short activities (<10ms) in order
to prevent excessive flickering. This behaviour was inadvertedly disabled in
commit da4e46dd1f due to not actually skipping
the short activity after calculating that it should have been. Fix this
oversight.

Fixes: #561
Change-Id: Ibee256a7018cdc431662cd8ea9f6c14ef1706972
This commit is contained in:
alois31 2024-11-10 20:00:42 +01:00
parent d1d96cc4c8
commit d0bcdfa6c4
Signed by: alois31
GPG key ID: E0F59EA5E5216914

View file

@ -382,6 +382,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s
delay - (now - i->startTime)
)
);
continue;
}
activity_line = i->s;