(trunk) remove tr_stats fields: downloaders, leechers, seeders, timesCompleted as per discussion with livings

This commit is contained in:
Charles Kerr
2009-09-26 06:20:33 +00:00
parent 34bfc1424c
commit 4a09a1de13
15 changed files with 7 additions and 202 deletions
+2 -6
View File
@@ -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;