Ignore:
Timestamp:
Apr 21, 2007, 1:57:30 PM (15 years ago)
Author:
livings124
Message:

streamline eta calculation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r1771 r1772  
    453453    else
    454454    {
    455         s->eta = ( 1.0 - s->progress ) *
    456             (float) inf->totalSize / s->rateDownload / 1024.0;
     455        s->eta = (float) s->left / s->rateDownload / 1024.0;
    457456    }
    458457
Note: See TracChangeset for help on using the changeset viewer.