mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
(clutch) #1296: Peer count on web interface is wrong
This commit is contained in:
parent
4caac75646
commit
9c9beb7cba
2 changed files with 4 additions and 4 deletions
|
@ -279,9 +279,9 @@ Torrent.prototype =
|
|||
this._upload_total = data.uploadedEver;
|
||||
this._download_speed = data.rateDownload;
|
||||
this._upload_speed = data.rateUpload;
|
||||
this._peers_connected = data.peersConnected;
|
||||
this._peers_getting_from_us = data.peersGettingFromUs;
|
||||
this._peers_sending_to_us = data.peersSendingToUs;
|
||||
this._peers_total = data.peersKnown;
|
||||
this._error = data.error;
|
||||
this._error_message = data.errorString;
|
||||
this._eta = data.eta;
|
||||
|
@ -360,7 +360,7 @@ Torrent.prototype =
|
|||
peer_details = 'Downloading from '
|
||||
+ this.peersSendingToUs()
|
||||
+ ' of '
|
||||
+ this._peers_total
|
||||
+ this._peers_connected
|
||||
+ ' peers - DL: '
|
||||
+ Math.formatBytes(this._download_speed)
|
||||
+ '/s UL: '
|
||||
|
@ -400,7 +400,7 @@ Torrent.prototype =
|
|||
peer_details = 'Seeding to '
|
||||
+ this.peersGettingFromUs()
|
||||
+ ' of '
|
||||
+ this._peers_total
|
||||
+ this._peers_connected
|
||||
+ ' peers - UL: '
|
||||
+ Math.formatBytes(this._upload_speed)
|
||||
+ '/s';
|
||||
|
|
|
@ -91,7 +91,7 @@ TransmissionRemote.prototype =
|
|||
'dateCreated', 'downloadedEver', 'error', 'errorString',
|
||||
'eta', 'hashString', 'haveUnchecked', 'haveValid', 'id',
|
||||
'isPrivate', 'leechers', 'leftUntilDone', 'name',
|
||||
'peersGettingFromUs', 'peersKnown', 'peersSendingToUs',
|
||||
'peersConnected', 'peersGettingFromUs', 'peersSendingToUs',
|
||||
'rateDownload', 'rateUpload', 'seeders', 'sizeWhenDone',
|
||||
'status', 'swarmSpeed', 'totalSize', 'uploadedEver' ];
|
||||
this.sendRequest( RPC._Root, $.toJSON(o), function(data) {
|
||||
|
|
Loading…
Add table
Reference in a new issue