mirror of
https://github.com/transmission/transmission
synced 2025-03-06 11:38:21 +00:00
(trunk web) #3043 "show eta for seeding torrents in webui" -- imlemented in trunk for 2.00
This commit is contained in:
parent
2aa1e69f98
commit
baab619c93
1 changed files with 12 additions and 0 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue