1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk web) #3485 "Add ratio to compact seeding display" -- fixed.

This commit is contained in:
Charles Kerr 2010-08-09 00:25:02 +00:00
parent c01c18b46b
commit cbf9792701

View file

@ -433,6 +433,9 @@ Torrent.prototype =
return null;
},
formatRatio: function() {
return 'Ratio: ' + Transmission.fmt.ratioString( this._upload_ratio );
},
formatUL: function() {
return 'UL: ' + Transmission.fmt.speed(this._upload_speed);
},
@ -476,7 +479,9 @@ Torrent.prototype =
case Torrent._StatusSeeding:
if(compact_mode){
c = this.formatUL();
c = this.formatRatio();
c += ' ';
c += this.formatUL();
} else {
// 'Seeding to 13 of 22 peers - UL: 36.2 KiB/s'
c = 'Seeding to ';
@ -616,8 +621,8 @@ Torrent.prototype =
// Eg:', uploaded 8.59 GiB (Ratio: 12.3)'
c += ', uploaded ';
c += Transmission.fmt.size( this._upload_total );
c += ' (Ratio ';
c += Transmission.fmt.ratioString( this._upload_ratio );
c += ' (';
c += this.formatRatio();
c += ')';
c += eta;
progress_details = c;