Git Product home page Git Product logo

etaprinter's Issues

Division by zero

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? ๐Ÿ‘

Wrong percentage calculation and estimates

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% [===================================> ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.