Page 1 of 1

[Solved] Web UI shows total_payload_download for upload

Posted: Sat Oct 29, 2011 9:31 pm
by krip
Hi,

It seems there is a small data read-out bug in the web ui statusbar. The text will show for instance:

Downloaded: 16.1 GiB (1.3 GiB)
Uploaded: 15.7 GiB (1.3 GiB)

Download and upload amount in the parentheses (listing total for current session?) is always the same. Code suggests it is reporting total_payload_download for both variables:

From deluge-1.3.3/deluge/ui/web/js/deluge-all/details/StatusTab.js:

data.downloaded += ' (' + ((status.total_payload_download) ? fsize(status.total_payload_download) : '0.0 KiB') + ')';
data.uploaded += ' (' + ((status.total_payload_download) ? fsize(status.total_payload_download): '0.0 KiB') + ')';

Guessing it should use total_payload_upload for data.uploaded variable?

Cheers,
Kristian

Re: Web UI statusbar shows total_payload_download for upload

Posted: Sat Oct 29, 2011 11:24 pm
by Cas
Thanks for finding that if you could create a ticket so that its not forgotten about.

Re: Web UI statusbar shows total_payload_download for upload

Posted: Sun Oct 30, 2011 7:04 am
by krip
Ah, had to register to create new tickets :)

Its added now (ticket #1960)

Thanks