hicklemr / rtgui

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

Manual refresh gives incorrect current speeds #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With some torrents loaded and running, load the rtgui page.  Manually
refresh (e.g. F5 in Firefox).  The manual refreshed page displays the total
upload speed (and presumably download speed too -- I'm only seeding at the
moment) as "0b" in the upper-right corner.

An auto-refresh shows the correct value (currently, "2.1Mb" up).  Manually
refreshing after an auto-refresh makes the value return to "0b", then auto
shows correct speed again, etc.

I have verified that the rtorrent console shows activity on the order of
1-2 MB/s when rtgui shows 0b.

I know about the b vs. B problem from another bug report.  This is unrelated.

I am using:
rtgui 0.2.3 (from tgz)
rtorrent 0.8.0-0ubuntu1
apache 2.2.8-1
php 5.2.4-2ubuntu5
Ubuntu 8.04 (hardy) on i386

Original issue reported on code.google.com by placated...@gmail.com on 29 Apr 2008 at 9:58

GoogleCodeExporter commented 8 years ago
This will be fixed in next version (coming soon!).

In the meantime, edit index.php and replace lines 57 - 58:

--LINE 57--
echo "<p>Down: <span class='inline download' 
id='glob_down_rate'>".format_bytes($rates[0]['ratedown'])."</span> 
".($globalstats['download_cap']!=0
 ? "(".format_bytes($globalstats['download_cap']).")" : "")."  \n";

--LINE 58--
echo "Up: <span class='inline upload' 
id='glob_up_rate'>".format_bytes($rates[0]['rateup'])."</span> 
".($globalstats['upload_cap']!=0 ? 
"(".format_bytes($globalstats['upload_cap']).")"
 : "")."</p>\n";

..Should fix it...
-Simon

Original comment by lemonbe...@gmail.com on 4 May 2008 at 1:37

GoogleCodeExporter commented 8 years ago

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