progress-stream icon indicating copy to clipboard operation
progress-stream copied to clipboard

Speedometer appears that it is being used incorrectly.

Open chaseoneill opened this issue 6 years ago • 0 comments

https://github.com/freeall/progress-stream/blob/master/index.js#L14

var speed = speedometer(options.speed || 5000);

This looks like it is passing speedometer milliseconds but according to these lines in speedometer source: https://github.com/mafintosh/speedometer/blob/master/index.js#L10 https://github.com/mafintosh/speedometer/blob/master/index.js#L16

module.exports = function (seconds) {
  ...
  var size = resolution * (seconds || 5)

It is expecting seconds, so it looks like you are defaulting the speed to 5000 seconds.

chaseoneill avatar Jan 27 '20 18:01 chaseoneill