the progress bar length is always changing when the idea console output.
whaozl opened this issue · 0 comments
whaozl commented
4798 / 36850 [=====>---------------------------------------] 13.02 % 1506/s 21s
17718 / 36850 [========================================>--------------------------------------------] 48.08 % 2040/s 9s
this length is always changing.
val a=Array(1,2,3,4,5,6,7,8,9,10)
var pb = new ProgressBar(a.length)
//pb.showSpeed = true//默认true
for (_ <- 1 to a.length) {
pb.add(1)
Thread.sleep(1500)
}
println("done")
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.matfax</groupId>
<artifactId>pb-scala</artifactId>
<version>v0.3.2</version>
</dependency>