1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Faster progress.

This commit is contained in:
Simo Kinnunen 2014-04-04 18:10:43 +09:00
parent c45da05e28
commit ea6245ace4
2 changed files with 5 additions and 3 deletions

View file

@ -101,7 +101,9 @@ module.exports = function(options) {
})
try {
var req = progress(request(url))
var req = progress(request(url), {
throttle: 100 // Throttle events, not upload speed
})
.on('progress', progressListener)
var save = req.pipe(fs.createWriteStream(path))