pmik76 / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 0 forks source link

Seeded amount incorrect for partial seeding tasks #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a torrent to partial seed by selecting only some of the files to be
downloaded
2. Seed it until you get some upload from it
3. Compare the seeded amount shown in rtGui with the seeded amount shown in
rtorrent itself

What is the expected output? What do you see instead?
It seems the seeded amount in rtGui is calculated by ratio * total size
rather than ratio * downloaded amount which makes it inconsistent with the
actual amount (and the amount shown in rtorrent). For example, if there is
a 3 gb torrent which I have downloaded 1 gb of and seeded 200mb from, the
ratio is 200 mb / 1000 mb = 0.2. rtGui instead reports the uploaded amount
as 0.2 * 3 gb = 600 mb uploaded.

What version of the product are you using? On what operating system?
rtGui v0.2.7 on Ubuntu 8.10

Please provide any additional information below.

Original issue reported on code.google.com by Konj...@gmail.com on 19 Apr 2009 at 6:14

GoogleCodeExporter commented 9 years ago
Here's the fix if you want to change your copy.  In functions.php, the line 
that reads:

$retarr[$index]['up_total']=$item[36] * $item[3] * ($item[34]/1000);

Should be:

$retarr[$index]['up_total']=$item[7] * $item[3] * ($item[34]/1000);

Original comment by llamaXxX@gmail.com on 20 Apr 2009 at 6:53

GoogleCodeExporter commented 9 years ago
Yup, thanks for the report, and thanks llamaXxX for fixing it :)

- Fix will be included in next version.

Original comment by lemonbe...@gmail.com on 20 Apr 2009 at 7:17

GoogleCodeExporter commented 9 years ago
Thanks it works, but it's not quite accurate, here in rTorrent it shows 840MB 
uploaded, 
in rtGUi it shows 750MB BUT another torrent shows correctly(almost +/- 2MB)

Running latest rtGUI 0.2.7 on Debian Lenny 64bit

Original comment by xxsash...@gmail.com on 3 Jul 2009 at 6:13