From b6999fc920e65644059cd46ffb3d6502100ee067 Mon Sep 17 00:00:00 2001 From: Christian Garbs Date: Sun, 28 Dec 2008 13:51:55 +0100 Subject: [PATCH] fix remote queue output --- xmlrtorrent.pl | 1 + xmlrtorrent.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xmlrtorrent.pl b/xmlrtorrent.pl index c2d823c..c5ff36b 100644 --- a/xmlrtorrent.pl +++ b/xmlrtorrent.pl @@ -221,6 +221,7 @@ sub cmd_remote { $_->{'NAME'}, $_->{'BYTES_DONE'}, $_->{'SIZE_BYTES'}, + $_->{'BYTES_DONE'}*100/$_->{'SIZE_BYTES'}, $_->{'UP_RATE'}, $_->{'DOWN_RATE'}); } diff --git a/xmlrtorrent.pm b/xmlrtorrent.pm index 12ec405..a33919f 100644 --- a/xmlrtorrent.pm +++ b/xmlrtorrent.pm @@ -89,7 +89,7 @@ sub download_list { 'SIZE_BYTES' => _format_number($_->[1]->value()), 'BYTES_DONE' => _format_number($_->[2]->value()), 'UP_RATE' => _format_number($_->[3]->value()), - 'DOWN_RATES' => _format_number($_->[4]->value()), + 'DOWN_RATE' => _format_number($_->[4]->value()), 'ACTIVE' => $_->[5]->value(), }; } -- 1.8.3.1