pmik76 / rtgui

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

some tricks to show size of large files #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For examle in index.php use 
$item['chunk_size']*$item['size_chunks'] instead $item['size_bytes'] 

And in other places calculate sizes via chunk_size, completed_chunks, 
size_chunks. In this case all sizes show correctly.

Original issue reported on code.google.com by kosty...@gmail.com on 3 Sep 2008 at 1:30

GoogleCodeExporter commented 9 years ago
Is this a fix for the xmlrpc-c problem?  Sorry - I don't have the (wrong) 
version of 
xmlrpc-c to check against!

Thanks
Simon

Original comment by lemonbe...@gmail.com on 3 Sep 2008 at 6:18

GoogleCodeExporter commented 9 years ago
this is  only trick to show correct sizes. "wtorrent" frontend use this method.

Maybe it is temporary solution of "Issue 1".

I use xmlrpc-c version from current freebsd port (xmlrpc-c-1.06.30).

Original comment by kosty...@gmail.com on 4 Sep 2008 at 6:27

GoogleCodeExporter commented 9 years ago
in functions.php

line 36:
$retarr[$index]['completed_bytes'] = $item[7] * $item[3]; // completed_chunks *
chunk_size
line 65:
$retarr[$index]['size_bytes']=$item[36] * $item[3]; // size_chunks * chunk_size

Original comment by mickael....@gmail.com on 6 Nov 2008 at 8:50

GoogleCodeExporter commented 9 years ago
This will workaround the negative numbers problem for the 'Remain' and 'Size' 
columns, but not 'Seeded' :(

I can't see a way to work-around the XMLRPC-C problem, but I will include this 
change in next version.

Original comment by lemonbe...@gmail.com on 5 Dec 2008 at 9:36

GoogleCodeExporter commented 9 years ago
Fixed in 0.2.6

Original comment by lemonbe...@gmail.com on 5 Dec 2008 at 10:27