mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
streamline eta calculation
This commit is contained in:
parent
83a565b5f1
commit
16aad395e2
1 changed files with 1 additions and 2 deletions
|
@ -452,8 +452,7 @@ tr_stat_t * tr_torrentStat( tr_torrent_t * tor )
|
|||
}
|
||||
else
|
||||
{
|
||||
s->eta = ( 1.0 - s->progress ) *
|
||||
(float) inf->totalSize / s->rateDownload / 1024.0;
|
||||
s->eta = (float) s->left / s->rateDownload / 1024.0;
|
||||
}
|
||||
|
||||
s->downloaded = tor->downloadedCur + tor->downloadedPrev;
|
||||
|
|
Loading…
Add table
Reference in a new issue