mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
Faster progress.
This commit is contained in:
parent
c45da05e28
commit
ea6245ace4
2 changed files with 5 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue