- Timestamp:
- Jul 25, 2008, 2:34:25 PM (14 years ago)
- Location:
- trunk/web/javascript
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/torrent.js
r6341 r6401 127 127 isSeeding: function() { return this.state() == Torrent._StatusSeeding; }, 128 128 name: function() { return this._name; }, 129 peers Downloading: function() { return this._peers_downloading; },130 peers Uploading: function() { return this._peers_uploading; },129 peersSendingToUs: function() { return this._peers_sending_to_us; }, 130 peersGettingFromUs: function() { return this._peers_getting_from_us; }, 131 131 getPercentDone: function() { 132 132 if( !this._sizeWhenDone ) return 1.0; … … 272 272 273 273 // Set the regularly-changing torrent variables 274 this._id = data.id;275 this._completed = data.haveUnchecked + data.haveValid;276 this._verified = data.haveValid;277 this._download_total = data.downloadedEver;278 this._upload_total = data.uploadedEver;279 this._download_speed = data.rateDownload;280 this._upload_speed = data.rateUpload;281 this._peers_ downloading= data.peersGettingFromUs;282 this._peers_ uploading= data.peersSendingToUs;283 this._peers_total = data.peersKnown;284 this._error = data.error;285 this._error_message = data.errorString;286 this._eta = data.eta;287 this._swarm_speed = data.swarmSpeed;288 this._total_leechers = Math.max( 0, data.leechers );289 this._total_seeders = Math.max( 0, data.seeders );290 this._state = data.status;274 this._id = data.id; 275 this._completed = data.haveUnchecked + data.haveValid; 276 this._verified = data.haveValid; 277 this._download_total = data.downloadedEver; 278 this._upload_total = data.uploadedEver; 279 this._download_speed = data.rateDownload; 280 this._upload_speed = data.rateUpload; 281 this._peers_getting_from_us = data.peersGettingFromUs; 282 this._peers_sending_to_us = data.peersSendingToUs; 283 this._peers_total = data.peersKnown; 284 this._error = data.error; 285 this._error_message = data.errorString; 286 this._eta = data.eta; 287 this._swarm_speed = data.swarmSpeed; 288 this._total_leechers = Math.max( 0, data.leechers ); 289 this._total_seeders = Math.max( 0, data.seeders ); 290 this._state = data.status; 291 291 }, 292 292 … … 351 351 else { 352 352 peer_details = 'Downloading from ' 353 + this. _peers_downloading353 + this.peersSendingToUs() 354 354 + ' of ' 355 355 + this._peers_total … … 391 391 else 392 392 peer_details = 'Seeding to ' 393 + this. _peers_uploading393 + this.peersGettingFromUs() 394 394 + ' of ' 395 395 + this._peers_total -
trunk/web/javascript/transmission.js
r6345 r6401 864 864 total_seeders += t.totalSeeders(); 865 865 total_leechers += t.totalLeechers(); 866 total_upload_peers += t.peers Uploading();867 total_download_peers += t.peers Downloading();866 total_upload_peers += t.peersGettingFromUs(); 867 total_download_peers += t.peersSendingToUs(); 868 868 total_swarm_speed += t.swarmSpeed(); 869 869 if( total_state == null )
Note: See TracChangeset
for help on using the changeset viewer.