Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorfisch0920 <fisch0920@gmail.com>2014-06-01 10:31:43 +0400
committerfisch0920 <fisch0920@gmail.com>2014-06-01 10:31:43 +0400
commit37da0663ea602cb58e57e6a5e98b9cafb9340de1 (patch)
tree0287195e0a833a3be64b82a99c6615738ff6b30f /bin
parent831ede0b798da55047fb10b13b11fdc8fc531160 (diff)
small fix for verifying existing torrent data
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index a939361..5bdbe00 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -169,10 +169,10 @@ function getRuntime () {
}
function onTorrent (torrent) {
- torrent.on('verifying', function (percent) {
+ torrent.on('verifying', function (data) {
if (!argv.quiet && !argv.list) {
clivas.clear()
- clivas.line('{green:verifying existing torrent} {bold:'+percent.toFixed(2)+'%}')
+ clivas.line('{green:verifying existing torrent} {bold:'+data.percentDone.toFixed(2)+'%} ({bold:'+data.percentVerified.toFixed(2)+'%} {green:passed verification})')
}
})