1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 03:28:33 +00:00

(trunk web) #3043 "show eta for seeding torrents in webui" -- imlemented in trunk for 2.00

This commit is contained in:
Charles Kerr 2010-03-14 05:28:25 +00:00
parent 2aa1e69f98
commit baab619c93

View file

@ -545,6 +545,17 @@ Torrent.prototype =
}
else
{
var eta = '';
if( this.isActive( ) && this.seedRatioLimit( ) > 0 )
{
eta = ' - ';
if (this._eta < 0 || this._eta >= Torrent._InfiniteTimeRemaining )
eta += 'remaining time unknown';
else
eta += Math.formatSeconds(this._eta) + ' remaining';
}
// Create the 'progress details' label
// Eg: '698.05 MB, uploaded 8.59 GB (Ratio: 12.3)'
c = Math.formatBytes( this._size );
@ -558,6 +569,7 @@ Torrent.prototype =
else
c += '0';
c += ')';
c += eta;
progress_details = c;
var status = this.isActive() ? 'complete' : 'complete_stopped';