vdurmont / etaprinter Goto Github PK
View Code? Open in Web Editor NEWJava console progress bar
License: MIT License
Java console progress bar
License: MIT License
In case of very fast processing it's possible stepDuration to be 0 in that case an ArtimeticException is thrown.
In line 164 of the ETAPrinter, itemDurationMillis is often 0 with the consequence of a /zero exception.
Version: Tag 1.0.0 (using Maven)
Runtime: OpenJDK 8 (openjdk-1.8.0.191-1.b12.redhat.windows.x86_64) on Windows 10 Pro
I tried to increase the wait time between two update calls to "every 100 processing units", but without success.
Edit: Tried the current master which seems to fix the issue. Maybe time for a new release? ๐
Please take a look at this output:
Max value: 2070
Current value: 19.984375
0% [ ] 3/s ETA 11m6s
29.9765625
2% [=> ] 8/s ETA 3m48s
Max value: 2070
Current value: 39.96875
4% [===> ] 21/s ETA 1m31s
Max value: 2070
Current value: 49.9609375
6% [=====> ] 20/s ETA 1m32s
Max value: 2070
Current value: 59.953125
9% [========> ] 33/s ETA 56s
Max value: 2070
Current value: 69.9453125
12% [===========> ] 28/s ETA 1m3s
Max value: 2070
Current value: 79.9375
16% [===============> ] 43/s ETA 39s
Max value: 2070
Current value: 89.9296875
20% [===================> ] 45/s ETA 36s
Max value: 2070
Current value: 99.921875
25% [========================> ] 55/s ETA 27s
Max value: 2070
Current value: 109.9140625
30% [=============================> ] 50/s ETA 28s
Max value: 2070
Current value: 119.90625
36% [===================================> ]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.