Changeset 8220 for trunk/libtransmission/torrent.c
- Timestamp:
- Apr 12, 2009, 5:31:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r8215 r8220 1043 1043 tr_file_stat * files = tr_new0( tr_file_stat, n ); 1044 1044 tr_file_stat * walk = files; 1045 const tr_bool isSeed = tor->completeness == TR_SEED; 1045 1046 1046 1047 assert( tr_isTorrent( tor ) ); … … 1048 1049 for( i = 0; i < n; ++i, ++walk ) 1049 1050 { 1050 const uint64_t b = fileBytesCompleted( tor, i );1051 const uint64_t b = isSeed ? tor->info.files[i].length : fileBytesCompleted( tor, i ); 1051 1052 walk->bytesCompleted = b; 1052 1053 walk->progress = tr_getRatio( b, tor->info.files[i].length );
Note: See TracChangeset
for help on using the changeset viewer.