Skip to content

Speedometer appears that it is being used incorrectly. #31

@chaseoneill

Description

@chaseoneill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions