Registry Mirror
Skip to content

Progressbar cannot be initialized to 0 #13

Closed

Description

@erikkallen

If the progressbar is initialized with a value of 0 it will instead be 100%

bar.start(1,0.0) // -> results in 100% progress

The problem is this line of code

https://github.com/AndiDittrich/Node.CLI-Progress/blob/master/lib/Bar.js#L75

I will try to make a pull request if I have time if someone needs a workaround for the time beeing use a near 0 value as initial value

bar.start(1,0.00001)

Activity

  1. changed the title [-]Progressbar will cannot be initialized to 0[/-] [+]Progressbar cannot be initialized to 0[/+] on Sep 4, 2017
  2. added a commit that references this issue on Sep 4, 2017
    51ec15f
  3. mmcintyre123 commented on Sep 4, 2017

    @mmcintyre123

    I also have this problem. Thank you for fixing this!

  4. added a commit that references this issue on Sep 5, 2017
    9804199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions