From adc1c80c4bde9fbeb3103a60615e251ada1f6934 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 23 Aug 2015 23:40:24 +0200 Subject: cmd: use new `torrent.downloaded` property --- bin/cmd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index 19fbab1..5536425 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -523,9 +523,9 @@ function drawTorrent (torrent) { } clivas.line( '{green:speed: }{bold:' + prettyBytes(speed) + '/s} ' + - '{green:downloaded:} {bold:' + prettyBytes(torrent.swarm.downloaded) + '}' + + '{green:downloaded:} {bold:' + prettyBytes(torrent.downloaded) + '}' + '/{bold:' + prettyBytes(torrent.length) + '} ' + - '{green:uploaded:} {bold:' + prettyBytes(torrent.swarm.uploaded) + '} ' + + '{green:uploaded:} {bold:' + prettyBytes(torrent.uploaded) + '} ' + '{green:peers:} {bold:' + unchoked.length + '/' + torrent.swarm.wires.length + '} ' + '{green:hotswaps:} {bold:' + hotswaps + '}' ) -- cgit v1.2.3