diff options
author | przemyslawpluta <przemekpluta@hotmail.com> | 2016-01-10 11:34:20 +0000 |
---|---|---|
committer | przemyslawpluta <przemekpluta@hotmail.com> | 2016-01-10 11:34:20 +0000 |
commit | eeefcdad742f40a83d6677e8d1b90bcadaedee8d (patch) | |
tree | a5474b95045511d9330762418ca5377e67fcef7e /lib/videos.js | |
parent | 947fbe824b60af01177967be33a8d98fddef571d (diff) | |
download | mongo-edu-eeefcdad742f40a83d6677e8d1b90bcadaedee8d.zip |
fix progress size
Diffstat (limited to 'lib/videos.js')
-rw-r--r-- | lib/videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/videos.js b/lib/videos.js index 1ba0ce7..33df751 100644 --- a/lib/videos.js +++ b/lib/videos.js @@ -80,7 +80,7 @@ var handleList = function handleList(list, tags) { console.log('i'.magenta + ' Downloading: ' + name.cyan); dlh.on('progress', function(state) { - if (!bar) { bar = new ProgressBar('>'.green + ' ' + filesize(state.total) + ' [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 20, total: 100 }); } + if (!bar) { bar = new ProgressBar('>'.green + ' ' + filesize(state.size.total) + ' [:bar] :percent :etas', { complete: '=', incomplete: ' ', width: 20, total: 100 }); } if (!bar.complete && progressSoFar !== state.percent) { var i; for (i = 0; i < (state.percent - hold); i++) { bar.tick(); } |