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
[-]Progressbar will cannot be initialized to 0[/-][+]Progressbar cannot be initialized to 0[/+]fixes npkgz#13 check for NaN explicitly
mmcintyre123 commentedon Sep 4, 2017
I also have this problem. Thank you for fixing this!
Merge pull request #14 from erikkallen/patch-1