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 commitda4e46dd1f
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:
parent
d1d96cc4c8
commit
d0bcdfa6c4
|
@ -382,6 +382,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optional<s
|
|||
delay - (now - i->startTime)
|
||||
)
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
activity_line = i->s;
|
||||
|
|
Loading…
Reference in a new issue