speedometer
Advanced tools
Comparing version 0.1.0 to 0.1.1
module.exports = function(seconds) { | ||
seconds = seconds || 5; | ||
seconds = seconds || 10; | ||
var transfers = [{time:Date.now(), transferred:0},{time:Date.now(), transferred:0}]; | ||
@@ -4,0 +4,0 @@ var tail = transfers[1]; |
{ | ||
"name": "speedometer", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": "git://github.com/mafintosh/speedometer", | ||
@@ -5,0 +5,0 @@ "description": "simple speed measurement in javascript", |
@@ -24,7 +24,7 @@ # speedometer | ||
Per default `speedometer` uses a 5 second buffer. | ||
Per default `speedometer` uses a 10 second buffer. | ||
To change this simply pass another value to the constructor | ||
``` js | ||
var speed = speedometer(10); // uses a 10s buffer instead | ||
var speed = speedometer(20); // uses a 20s buffer instead | ||
``` | ||
@@ -34,2 +34,2 @@ | ||
MIT | ||
MIT |
1595
34