1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-16 16:55:36 +00:00

#2592 remove swarm speed from the web ui

This commit is contained in:
Mitchell Livingston 2009-11-22 00:55:20 +00:00
parent ec08e333a2
commit aa908ab864
3 changed files with 1 additions and 12 deletions

View file

@ -146,10 +146,6 @@
<div class="inspector_label">Ratio:</div>
<div id="torrent_inspector_ratio">N/A</div>
</div>
<div class="inspector_row">
<div class="inspector_label">Swarm Rate:</div>
<div id="torrent_inspector_swarm_speed">N/A</div>
</div>
<div class="inspector_row">
<div class="inspector_label">Error:</div>
<div id="torrent_inspector_error">N/A</div>

View file

@ -32,7 +32,7 @@ Torrent._StaticFields = [ 'addedDate', 'comment', 'creator', 'dateCreated',
Torrent._DynamicFields = [ 'downloadedEver', 'error', 'errorString', 'eta',
'haveUnchecked', 'haveValid', 'leftUntilDone', 'peersConnected',
'peersGettingFromUs', 'peersSendingToUs', 'rateDownload', 'rateUpload',
'recheckProgress', 'sizeWhenDone', 'status', 'swarmSpeed',
'recheckProgress', 'sizeWhenDone', 'status',
'uploadedEver', 'uploadRatio', 'seedRatioLimit', 'seedRatioMode', 'downloadDir' ]
Torrent.prototype =
@ -206,7 +206,6 @@ Torrent.prototype =
default: return 'error';
}
},
swarmSpeed: function() { return this._swarm_speed; },
uploadSpeed: function() { return this._upload_speed; },
uploadTotal: function() { return this._upload_total; },
showFileList: function() {
@ -330,7 +329,6 @@ Torrent.prototype =
this._error = data.error;
this._error_string = data.errorString;
this._eta = data.eta;
this._swarm_speed = data.swarmSpeed;
this._state = data.status;
this._download_dir = data.downloadDir;

View file

@ -102,7 +102,6 @@ Transmission.prototype =
this._inspector._info_tab.secure = $(ti+'secure')[0];
this._inspector._info_tab.size = $(ti+'size')[0];
this._inspector._info_tab.state = $(ti+'state')[0];
this._inspector._info_tab.swarm_speed = $(ti+'swarm_speed')[0];
this._inspector._info_tab.pieces = $(ti+'pieces')[0];
this._inspector._info_tab.uploaded = $(ti+'uploaded')[0];
this._inspector._info_tab.upload_speed = $(ti+'upload_speed')[0];
@ -1011,7 +1010,6 @@ Transmission.prototype =
var total_have = 0;
var total_size = 0;
var total_state = null;
var total_swarm_speed = 0;
var pieces = 'N/A';
var total_upload = 0;
var total_upload_peers = 0;
@ -1034,7 +1032,6 @@ Transmission.prototype =
setInnerHTML( tab.uploaded, na );
setInnerHTML( tab.downloaded, na );
setInnerHTML( tab.ratio, na );
setInnerHTML( tab.swarm_speed, na );
setInnerHTML( tab.have, na );
setInnerHTML( tab.upload_to, na );
setInnerHTML( tab.download_from, na );
@ -1083,7 +1080,6 @@ Transmission.prototype =
total_download_speed += t.downloadSpeed();
total_upload_peers += t.peersGettingFromUs();
total_download_peers += t.peersSendingToUs();
total_swarm_speed += t.swarmSpeed();
if( total_state == null )
total_state = t.stateStr();
else if ( total_state.search ( t.stateStr() ) == -1 )
@ -1109,7 +1105,6 @@ Transmission.prototype =
setInnerHTML( tab.uploaded, torrents.length ? Math.formatBytes( total_upload ) : na );
setInnerHTML( tab.downloaded, torrents.length ? Math.formatBytes( total_download ) : na );
setInnerHTML( tab.ratio, torrents.length ? Math.ratio( total_upload, total_download ) : na );
setInnerHTML( tab.swarm_speed, torrents.length ? Math.formatBytes(total_swarm_speed) + '/s' : na );
setInnerHTML( tab.have, torrents.length ? Math.formatBytes(total_completed) + ' (' + Math.formatBytes(total_verified) + ' verified)' : na );
setInnerHTML( tab.upload_to, torrents.length ? total_upload_peers : na );
setInnerHTML( tab.download_from, torrents.length ? total_download_peers : na );