mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk) remove tr_stats fields: downloaders, leechers, seeders, timesCompleted as per discussion with livings
This commit is contained in:
@@ -30,9 +30,9 @@ Torrent._ErrLocalError = 3;
|
||||
Torrent._StaticFields = [ 'addedDate', 'announceURL', 'comment', 'creator',
|
||||
'dateCreated', 'hashString', 'id', 'isPrivate', 'name', 'totalSize' ]
|
||||
Torrent._DynamicFields = [ 'downloadedEver', 'error', 'errorString', 'eta',
|
||||
'haveUnchecked', 'haveValid', 'leechers', 'leftUntilDone', 'peersConnected',
|
||||
'haveUnchecked', 'haveValid', 'leftUntilDone', 'peersConnected',
|
||||
'peersGettingFromUs', 'peersSendingToUs', 'rateDownload', 'rateUpload',
|
||||
'recheckProgress', 'seeders', 'sizeWhenDone', 'status', 'swarmSpeed',
|
||||
'recheckProgress', 'sizeWhenDone', 'status', 'swarmSpeed',
|
||||
'uploadedEver', 'uploadRatio', 'seedRatioLimit', 'seedRatioMode', 'downloadDir' ]
|
||||
|
||||
Torrent.prototype =
|
||||
@@ -206,8 +206,6 @@ Torrent.prototype =
|
||||
}
|
||||
},
|
||||
swarmSpeed: function() { return this._swarm_speed; },
|
||||
totalLeechers: function() { return this._total_leechers; },
|
||||
totalSeeders: function() { return this._total_seeders; },
|
||||
uploadSpeed: function() { return this._upload_speed; },
|
||||
uploadTotal: function() { return this._upload_total; },
|
||||
showFileList: function() {
|
||||
@@ -332,8 +330,6 @@ Torrent.prototype =
|
||||
this._error_string = data.errorString;
|
||||
this._eta = data.eta;
|
||||
this._swarm_speed = data.swarmSpeed;
|
||||
this._total_leechers = Math.max( 0, data.leechers );
|
||||
this._total_seeders = Math.max( 0, data.seeders );
|
||||
this._state = data.status;
|
||||
this._download_dir = data.downloadDir;
|
||||
|
||||
|
||||
@@ -98,8 +98,6 @@ Transmission.prototype =
|
||||
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.total_leechers = $(ti+'total_leechers')[0];
|
||||
this._inspector._info_tab.total_seeders = $(ti+'total_seeders')[0];
|
||||
this._inspector._info_tab.tracker = $(ti+'tracker')[0];
|
||||
this._inspector._info_tab.uploaded = $(ti+'uploaded')[0];
|
||||
this._inspector._info_tab.upload_speed = $(ti+'upload_speed')[0];
|
||||
@@ -936,9 +934,7 @@ Transmission.prototype =
|
||||
var total_download_peers = 0;
|
||||
var total_download_speed = 0;
|
||||
var total_have = 0;
|
||||
var total_leechers = 0;
|
||||
var total_size = 0;
|
||||
var total_seeders = 0;
|
||||
var total_state = null;
|
||||
var total_swarm_speed = 0;
|
||||
var total_tracker = null;
|
||||
@@ -963,8 +959,6 @@ Transmission.prototype =
|
||||
setInnerHTML( tab.uploaded, na );
|
||||
setInnerHTML( tab.downloaded, na );
|
||||
setInnerHTML( tab.ratio, na );
|
||||
setInnerHTML( tab.total_seeders, na );
|
||||
setInnerHTML( tab.total_leechers, na );
|
||||
setInnerHTML( tab.swarm_speed, na );
|
||||
setInnerHTML( tab.have, na );
|
||||
setInnerHTML( tab.upload_to, na );
|
||||
@@ -1011,8 +1005,6 @@ Transmission.prototype =
|
||||
total_download += t.downloadTotal();
|
||||
total_upload_speed += t.uploadSpeed();
|
||||
total_download_speed += t.downloadSpeed();
|
||||
total_seeders += t.totalSeeders();
|
||||
total_leechers += t.totalLeechers();
|
||||
total_upload_peers += t.peersGettingFromUs();
|
||||
total_download_peers += t.peersSendingToUs();
|
||||
total_swarm_speed += t.swarmSpeed();
|
||||
@@ -1046,8 +1038,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.total_seeders, torrents.length ? total_seeders : na );
|
||||
setInnerHTML( tab.total_leechers, torrents.length ? total_leechers : 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 );
|
||||
|
||||
Reference in New Issue
Block a user