mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user