streamline eta calculation

This commit is contained in:
Mitchell Livingston 2007-04-21 13:57:30 +00:00
parent 83a565b5f1
commit 16aad395e2
1 changed files with 1 additions and 2 deletions

View File

@ -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;