Changeset 9839


Ignore:
Timestamp:
Dec 29, 2009, 1:35:52 AM (13 years ago)
Author:
livings124
Message:

fix bug from r9820 where file progress was either 0.0 or 1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9820 r9839  
    11261126        const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i );
    11271127        walk->bytesCompleted = b;
    1128         walk->progress = tor->info.files[i].length > 0.0 ? ( b / tor->info.files[i].length ) : 1.0;
     1128        walk->progress = tor->info.files[i].length > 0.0 ? ( (float)b / tor->info.files[i].length ) : 1.0;
    11291129    }
    11301130
Note: See TracChangeset for help on using the changeset viewer.