Skip to content

Speedometer appears that it is being used incorrectly. #31

Open

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.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions