node-progress
node-progress copied to clipboard
Fixed NaN `:rate` and 0.0 `:eta` when `curr` is set.
- Setting the current progress index to anything other than
0will cause the value ofthis.startto be undefined. This causes the calculation for:etaand:rateto produce useless information.- Replaced conditional to set
startonly when the progress is ticked whencurrent== 0. - We will always set the
starttime on first tick anyway.
- Replaced conditional to set
This PR should resolve and close #159