Author: damoxc
Revision: 4974
Log:
change the seeders/peers in the status tab to match the torrent grid
Diff:
Modified: trunk/deluge/ui/web/js/deluge-details.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-details.js 2009-04-01 22:00:40 UTC (rev
4973)
+++ trunk/deluge/ui/web/js/deluge-details.js 2009-04-01 22:04:36 UTC (rev
4974)
@@ -87,6 +87,8 @@
},
onRequestComplete: function(status) {
+ seeders = status.total_seeds > -1 ? status.num_seeds + ' (' +
status.total_seeds + ')' : status.num_seeds
+ peers = status.total_peers > -1 ? status.num_peers + ' (' +
status.total_peers + ')' : status.num_peers
var data = {
downloaded: fsize(status.total_done) + ' (' +
fsize(status.total_payload_download) + ')',
uploaded: fsize(status.total_uploaded) + ' (' +
fsize(status.total_payload_upload) + ')',
@@ -97,8 +99,8 @@
upspeed: fspeed(status.upload_payload_rate),
eta: ftime(status.eta),
pieces: status.num_pieces + ' (' + fsize(status.piece_length) +
')',
- seeders: status.num_seeds + ' (' + status.total_seeds + ')',
- peers: status.num_peers + ' (' + status.total_peers + ')',
+ seeders: seeders,
+ peers: peers,
avail: status.distributed_copies.toFixed(3),
active_time: ftime(status.active_time),
seeding_time: ftime(status.seeding_time),
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---